pdf

Extract, create, merge, split, and fill PDF documents using Python libraries and command-line tools.

Updated Jul 11, 2026
One-click install
npx skills add https://github.com/mukaddam-ali/Anadolu-Kitchen --skill pdf-mukaddam-ali
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/mukaddam-ali/Anadolu-Kitchen/tree/main/skills/document-skills/pdf
Command: npx skills add https://github.com/mukaddam-ali/Anadolu-Kitchen --skill pdf-mukaddam-ali

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Working with PDF files programmatically is fragmented across many libraries and tools, and tasks like filling forms, extracting tables, or merging documents each require different approaches. This Skill consolidates PDF manipulation into one toolkit with ready-to-run scripts and code patterns. ## Core Features & Use Cases - Text and Table Extraction: Pull text and structured tables from PDFs using pdfplumber and pypdf, with OCR support for scanned documents via pytesseract. - PDF Creation and Manipulation: Generate new PDFs with reportlab, merge and split documents, rotate pages, add watermarks, and manage password protection. - Automated Form Filling: Fill both fillable PDF forms (via field extraction scripts) and non-fillable forms (via visual bounding-box analysis and text annotations). - Use Case: You receive a stack of non-fillable PDF application forms. The Skill converts pages to images, guides bounding-box validation, and produces completed PDFs with text annotations placed precisely on each field. ## Quick Start Use the pdf skill to extract all tables from the attached report.pdf and save them to an Excel file.

Frequently Asked Questions about pdf

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

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

Use pdfplumber's page.extract_tables() method to detect and extract tables from each PDF page. The results can be loaded into pandas DataFrames and exported to Excel or CSV for further analysis.

How do I fill a PDF form programmatically?

First run check_fillable_fields.py to detect fillable fields. If fields exist, extract their info with extract_form_field_info.py and fill them via fill_fillable_fields.py; otherwise use visual bounding-box analysis and fill_pdf_form_with_annotations.py.

Which Python library should I use for PDF text extraction?

pdfplumber is best for text with layout and tables, while pypdf handles basic text, metadata, merging, and splitting. For scanned PDFs without a text layer, use pdf2image with pytesseract for OCR.

Can I extract text from a scanned PDF document?

Scanned PDFs contain images rather than text, so standard parsers return nothing. Convert pages to images with pdf2image, then run pytesseract OCR on each image to recover the text content.

How do I merge or split PDF files from the command line?

Use qpdf: merge with 'qpdf --empty --pages file1.pdf file2.pdf -- merged.pdf' and split page ranges with 'qpdf input.pdf --pages . 1-5 -- output.pdf'. The pypdf library offers equivalent operations in Python.

Why does my filled PDF form not display values correctly?

Some viewers fail to render form values without appearance streams. The fill_fillable_fields.py script calls set_need_appearances_writer(True) so viewers regenerate field appearances, though some may show a save-changes dialog.