portable-document-handler

Create, extract, merge, split, and transform PDF documents using Python libraries.

39|1|Updated Dec 21, 2025
One-click install
npx skills add https://github.com/qodex-ai/ai-agent-skills --skill portable-document-handler
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: portable-document-handler
Source: https://github.com/qodex-ai/ai-agent-skills/tree/main/skills/portable-document-handler
Command: npx skills add https://github.com/qodex-ai/ai-agent-skills --skill portable-document-handler

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pypdf, pdfplumber, reportlab, pdf2image, pytesseract, qpdf, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of working with PDF documents, enabling you to automate tasks like creating new PDFs, extracting text and tables, merging multiple documents, splitting large files, and more, all without manual intervention.

Core Features & Use Cases

  • PDF Creation: Generate PDFs from scratch with text and structured layouts using reportlab.
  • Text & Table Extraction: Extract text and tabular data from existing PDFs using pdfplumber and pypdf.
  • Document Manipulation: Merge, split, rotate, and add watermarks to PDF files.
  • Form Handling: Fill out fillable PDF forms or add text annotations to non-fillable forms.
  • Use Case: Automatically process a batch of scanned PDF invoices by extracting key information (invoice number, date, amount) and saving it to a CSV file, or merge several research papers into a single, organized document.

Quick Start

Use the portable-document-handler skill to extract all text from the file named 'report.pdf'.

Frequently Asked Questions about portable-document-handler

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

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

You can extract text and tables from PDFs using Python libraries like pdfplumber and pypdf. This approach enables automated data extraction from existing documents for downstream processing workflows.

What is the best way to merge multiple PDF documents into a single file?

Merging multiple PDF documents programmatically is best achieved using libraries like pypdf. This approach combines distinct PDF files into a single organized document without manual intervention.

Can I fill out fillable PDF forms automatically with Python?

Yes, you can fill out PDF forms automatically with Python. This capability supports populating fillable form fields and adding text annotations to non-fillable PDF documents programmatically.

How do I create a new PDF with structured layouts from scratch?

To create a new PDF with structured layouts from scratch, use the reportlab Python library. This enables programmatic generation of custom PDF documents containing text and formatted layouts.

Does this PDF processing approach work with scanned documents?

Processing scanned PDF documents is supported through pytesseract and pdf2image. This combination provides OCR capabilities to extract text from image-based PDF files like scanned invoices.

What are the limitations of pypdf when splitting large PDF files?

When splitting large PDF files with pypdf, complex structures or encrypted documents may require additional tools like qpdf. These handle advanced transformations and decryption edge cases effectively.