anthropic-pdf

Processes PDFs by extracting text/data, merging, splitting, OCR-ing, and handling forms using pypdf, pdfplumber, pdf2image, and Pillow scripts.

Updated Jun 14, 2024
One-click install
npx skills add https://github.com/Huijiro/dotfiles --skill anthropic-pdf-huijiro
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: anthropic-pdf
Source: https://github.com/Huijiro/dotfiles/tree/main/agents/.agents/skills/anthropic-pdf
Command: npx skills add https://github.com/Huijiro/dotfiles --skill anthropic-pdf-huijiro

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pypdf, pdfplumber, pdf2image, Pillow, and includes scripts (resource) components.

What problem does it solve?

PDF management is tedious and error-prone when you need to read text, extract data, merge documents, rotate pages, OCR scanned files, or fill forms.

Core Features & Use Cases

  • Read PDFs and extract text, metadata, and tables.
  • Merge, split, rotate, and watermark PDFs; create new documents.
  • OCR on scanned PDFs to make text searchable and extract images.
  • Fill forms (fillable and non-fillable) and encrypt/decrypt PDFs.
  • Automate common workflows for archiving, reporting, and data extraction.

Quick Start

Process a sample.pdf by extracting text, merging pages, and applying OCR if needed.

Frequently Asked Questions about anthropic-pdf

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract text and tables from a PDF in Python?

Extract text, metadata, and tables from PDFs using deterministic Python scripts. The Skill processes document content by parsing structural elements to retrieve raw text and tabular data for archiving and reporting workflows.

What's the best way to apply OCR to scanned PDFs for text extraction?

Apply OCR to scanned PDFs by converting pages into images and processing them to make text searchable. This approach extracts text from image-based documents and retrieves embedded images during digitization.

Can I merge, split, and watermark PDF pages using pypdf and pdfplumber?

Merge, split, rotate, and watermark PDF pages using Python scripting with pypdf and pdfplumber. These dependencies coordinate document manipulation tasks to create new documents from existing pages.

How do I fill forms and encrypt PDFs for administrative workflows?

Fill both fillable and non-fillable forms, then encrypt or decrypt PDFs using automated scripts. The process handles form fields and applies security restrictions for document preparation and archiving.

Does this PDF processing approach work for digitization and archiving at scale?

This PDF processing approach suits digitization and archiving workflows across development environments. It automates common tasks like data extraction and document merging for administrative reporting at scale.

Why does PDF text extraction return garbled or missing characters?

PDF text extraction returns garbled characters when documents are scanned images without searchable text layers. Applying OCR processes these image-based pages to recognize and extract text accurately for downstream processing.