skillfed

pdf

PDF skill provides Python-based tools for extracting text and tables, merging and splitting documents, creating new PDFs, and handling forms. Use it to process, analyze, or generate PDF files at scale.

PDF skill extracts text and tables from PDF documents programmatically using Python libraries.

AI-generated summary based on this skill's SKILL.md

137 9 MIT updated by appautomaton

Install

appautomaton/document-SKILLs/pdf · repository language: Python

git clone https://github.com/appautomaton/document-SKILLs
cp -r document-SKILLs/pdf ~/.claude/skills/pdf
npx skillfed install appautomaton/document-SKILLs/pdf

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How can I merge PDF files using the PDF skill?

PDF skill enables you to merge multiple PDF documents programmatically. You can combine pages from different PDFs into a single document, controlling the order and structure of merged content. This is useful for consolidating reports, combining chapters, or batch-processing document collections.

What's the best way to extract text from PDF with Python?

PDF skill provides Python-based tools to extract text from PDF documents efficiently. You can retrieve text content while preserving layout information, making it easier to parse structured data. The skill handles various PDF formats and supports extracting text alongside tables and metadata.

Can PDF skill split a PDF into separate pages?

Yes, PDF skill lets you split PDF documents into individual pages or custom page ranges. You can extract specific pages, reorganize document structure, or separate multi-page PDFs for further processing. This is essential for batch operations and selective document handling.

How do I read PDF tables and convert them to Excel?

PDF skill can extract tables from PDF documents and convert them into structured formats like Excel. It recognizes table layouts and preserves cell relationships, allowing you to transform PDF data into spreadsheets for analysis and reporting.

Can I create and generate new PDF documents from code?

PDF skill supports creating new PDF documents programmatically from Python code. You can generate PDFs from scratch, add content dynamically, and automate document generation workflows. This enables building custom reports, invoices, and data-driven documents at scale.

Does PDF skill support form filling and automation?

PDF skill provides tools for automating PDF form processing and filling. You can populate form fields programmatically, extract form data, and streamline document workflows. This is ideal for batch form processing, data entry automation, and compliance document handling.

SKILL.md

rendered from the published skill — quoted content, verbatim

PDF Processing Guide

Overview

This guide covers essential PDF processing operations using Python libraries and command-line tools. For advanced features, JavaScript libraries, and detailed examples, see reference.md. If you need to fill out a PDF form, read forms.md and follow its instructions.

Prerequisites

Python dependencies are resolved automatically by uv run — every script declares them in its PEP 723 header. Some workflows also need system tools:

  • poppler (brew install poppler / apt-get install poppler-utils) — provides pdftoppm and pdftotext; required by the form-filling workflow, which converts PDF pages to images via pdf2image
  • tesseract (brew install tesseract tesseract-lang) — only for OCR on scanned documents (see ocr.md)
  • qpdf (brew install qpdf) — only for the command-line recipes in the qpdf section below

Quick

(truncated - see the full file via the links below)

Read as markdown · JSON record · Browse the source repository

File tree — 13 files
pdf/SKILL.md
pdf/forms.md
pdf/ocr.md
pdf/reference.md
pdf/scripts/check_bounding_boxes.py
pdf/scripts/check_bounding_boxes_test.py
pdf/scripts/check_fillable_fields.py
pdf/scripts/convert_pdf_to_images.py
pdf/scripts/create_validation_image.py
pdf/scripts/extract_form_field_info.py
pdf/scripts/fill_fillable_fields.py
pdf/scripts/fill_pdf_form_with_annotations.py
pdf/tables.md

Related skills

Tags

document-automation data-extraction form-processing batch-operations file-conversion ocr-scanning metadata-handling encryption-security table-parsing page-manipulation