pdf-processing

Extract text and tables, fill forms, and merge PDFs using Python scripts.

19.5k|2.8k|Updated Jul 22, 2025
One-click install
npx skills add https://github.com/Tencent/WeKnora --skill pdf-processing-tencent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf-processing
Source: https://github.com/Tencent/WeKnora/tree/main/examples/skills/pdf-processing
Command: npx skills add https://github.com/Tencent/WeKnora --skill pdf-processing-tencent

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

The PDF Processing Skill helps users automate reading, organizing, and manipulating PDF documents by extracting text, tables, filling forms, and merging files, reducing manual data-entry time.

Core Features & Use Cases

  • Text Extraction: Retrieve plain text from PDF pages for indexing and reporting.
  • Table Extraction: Pull tabular data from PDFs into usable structures.
  • Form Filling: Programmatically populate fillable PDF forms with provided data.
  • Document Merging: Combine multiple PDFs into a single document for archival or sharing.
  • Use Case: Automate invoice processing by extracting line items and totals, then merging with a summary document.

Quick Start

To get started, run the included scripts:

  • python scripts/extract_text.py sample.pdf
  • python scripts/analyze_form.py sample.pdf
  • python scripts/extract_text.py sample.pdf --page 1

Frequently Asked Questions about pdf-processing

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

FAQPage Schema
How do I extract text and tables from PDF documents for data processing?

To extract text and tables from PDF documents, you can run Python scripts using the pdfplumber library. This parses PDF pages to retrieve plain text and pull tabular data into usable structures for indexing, reporting, or data-entry workflows.

Can I programmatically fill fillable PDF forms with provided data?

Yes, you can programmatically fill fillable PDF forms with provided data. The skill utilizes standard PDF tooling in Python to populate form fields automatically, reducing manual data-entry time for administrative and record-keeping tasks.

What is the best way to merge multiple PDFs into a single document for archival?

The best way to merge multiple PDFs into a single document is by using included Python scripts. This combines files for archival or sharing, enabling automated document digitization and streamlined archival retrieval workflows.

Does this PDF processing approach work for automating invoice processing?

Yes, this PDF processing approach works for automating invoice processing. It extracts line items and totals from invoice tables, then merges the extracted data with a summary document to automate administrative workflows.

Do I need any external libraries to extract text from a PDF page?

You need the pdfplumber Python library and standard PDF tooling included in the scripts to extract text from a PDF page. No external dependencies are required beyond the Python environment to run the provided extraction scripts.

Why does my PDF table extraction return misaligned data structures?

PDF table extraction can return misaligned data structures due to complex formatting or merged cells in the source document. The pdfplumber library parses standard tables, but digitizing irregularly formatted PDFs may require manual structure verification.