pdf

Extract text and tables from PDFs using Python libraries.

Updated Nov 22, 2024
One-click install
npx skills add https://github.com/creamgod45/CGCloud --skill pdf-creamgod45
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/creamgod45/CGCloud/tree/main/.agents/skills/pdf
Command: npx skills add https://github.com/creamgod45/CGCloud --skill pdf-creamgod45

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

PDF processing tasks are tedious and error-prone when done manually, especially for extracting text or tables, merging/splitting documents, or applying forms and encryption.

Core Features & Use Cases

  • Text extraction and table extraction from PDFs
  • Merge, split, and rotate pages; add watermarks; encrypt/decrypt
  • Fill PDF forms and annotate non-fillable forms
  • Convert PDFs to images, OCR for scanned docs
  • Use case: automate invoice processing by extracting line items and totals

Quick Start

Run a simple command to extract text from an example PDF named sample.pdf and read the result.

Frequently Asked Questions about pdf

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

FAQPage Schema
How do I extract tables and text from a PDF for invoice processing?

Extract text and tables from a PDF for invoice processing using pdfplumber. This automates data-ops tasks by pulling line items and totals directly from the document.

Can I run OCR on scanned PDF documents using Python?

Yes, you can run OCR on scanned PDF documents using Python. The process converts PDFs to images with pdf2image and pillow, enabling text extraction from scanned pages.

What is the best way to merge, split, or rotate PDF pages?

The best way to merge, split, or rotate PDF pages is using pypdf. It handles document modification tasks including combining multiple PDFs and adjusting page orientation.

How do I fill PDF forms and annotate non-fillable documents?

You can fill PDF forms and annotate non-fillable documents using Python scripts. This automates comprehensive form handling by applying data directly to the document fields.

Does pypdf support encrypting and decrypting PDF files?

Yes, pypdf supports encrypting and decrypting PDF files. You can add passwords to secure document content or remove existing encryption for further modification.

How do I add a watermark to a PDF document?

You can add a watermark to a PDF document using Python libraries like pypdf. This applies overlays to pages for branding or security purposes during document processing.