PDF Document Processing for Openclaw

A comprehensive toolkit for reading, extracting, merging, and creating PDF documents using industry-standard Python libraries and CLI tools.

guohongbin-git
v1.0.1
Feb 21, 2026
0
2.9k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install pdf-cn

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install pdf-cn using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is PDF Document Processing?

The PDF Document Processing skill is a robust extension for AI agents, designed to handle complex document manipulation tasks with precision. It integrates powerful Python libraries like pypdf for basic operations, pdfplumber for high-fidelity data extraction, and reportlab for programmatic document generation.

This skill enables developers to build sophisticated automation workflows within Openclaw Skills, allowing agents to navigate everything from simple page rotations to complex OCR-based text extraction from scanned documents. It provides the technical foundation needed to turn static PDF files into actionable data or professionally formatted reports.

PDF Document Processing Use Cases

  • Merging multiple document fragments or reports into a single, cohesive PDF file.
  • Extracting structured table data from financial statements for further analysis in Excel or databases.
  • Automating the splitting of large PDF archives into individual pages for easier indexing.
  • Applying watermarks and password protection to sensitive documents for secure distribution.
  • Converting scanned images and non-searchable PDFs into plain text using OCR integration.

How PDF Document Processing Works

  1. The AI agent detects a PDF-related requirement and triggers the skill using keywords like PDF or pdf.
  2. The skill selects the optimal library for the task: pypdf for file-level operations, pdfplumber for layout-aware extraction, or reportlab for generation.
  3. For reading tasks, the skill parses the document metadata and content, converting it into a structured format for the agent to process.
  4. For modification tasks, the skill applies transformations such as rotation, merging, or splitting and saves the output to a new file.
  5. For creation tasks, the skill uses XML-based markup to generate high-quality documents with precise control over typography and layout.

PDF Document Processing Setup

To utilize this skill within your Openclaw Skills environment, install the required Python dependencies and system utilities:

pip install pypdf pdfplumber reportlab pytesseract pdf2image

For command-line power and OCR capabilities, ensure the following system packages are installed (example for Debian/Ubuntu):

sudo apt-get install poppler-utils qpdf tesseract-ocr

PDF Document Processing Data Schema & Taxonomy

The skill organizes PDF data and outputs according to the following structures:

Data Type Extraction/Storage Method Format
Metadata pypdf.metadata Key-value pairs (Title, Author, etc.)
Text Content pdfplumber.extract_text() UTF-8 String (with layout preservation)
Table Data pdfplumber.extract_tables() 2D Arrays or Pandas DataFrames
Images pdfimages (CLI) JPG or PNG files
Layout reportlab.platypus XML-based paragraph and flowable objects

PDF Document Processing Advanced Features

  • Advanced table extraction that converts complex PDF grids directly into Pandas DataFrames for data science workflows.
  • Programmatic document generation with support for subscripts, superscripts, and complex XML styling via ReportLab.
  • Integrated OCR (Optical Character Recognition) support for processing scanned documents into searchable text strings.
  • High-performance command-line integration with qpdf for decryption, encryption, and fast batch processing.
  • Layout-aware text extraction that maintains the visual relationship of data on the page.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*