pypdf for Openclaw

A robust CLI tool for programmatically inspecting, extracting text from, and transforming PDF files.

maverick-ai-tech
v1.0.0
Feb 27, 2026
0
1k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install pypdf

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 pypdf 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 pypdf?

The pypdf skill is a comprehensive utility designed for high-fidelity PDF operations within an AI agent environment. By utilizing a deterministic CLI-based approach via the pypdf_cli.py script, it eliminates the need for manual code snippets when processing documents. As part of the Openclaw Skills ecosystem, this tool provides reliable methods for handling metadata, page extraction, and structural transformations of PDF files.

This skill is particularly valuable for developers who need to integrate document intelligence into their automation pipelines. Whether you are performing bulk text extraction or complex document merging, the pypdf skill offers a stable and predictable interface to manage PDF assets efficiently.

pypdf Use Cases

  • Automating the extraction of text from specific page ranges for LLM processing.
  • Merging several individual reports or invoices into a single cohesive PDF document.
  • Splitting multi-page documents into individual files for better data organization.
  • Rotating scanned documents that were saved in the wrong orientation.
  • Inspecting PDF metadata to verify document properties and page counts automatically.

How pypdf Works

  1. Verify that the PDF file intended for processing is accessible in the local file path.
  2. Invoke the pypdf_cli.py script using Python 3 with a specific command such as info, extract-text, or merge.
  3. Provide the necessary arguments including input paths, output paths, and specific page indices (0-indexed).
  4. The skill executes the operation using the pypdf library and returns either the extracted text to stdout or writes a new PDF file to the disk.

pypdf Setup

To use this skill, ensure you have Python 3 installed. You must also install the required pypdf library using pip:

pip install pypdf

Once the dependency is met, you can run the CLI script directly:

python scripts/pypdf_cli.py --help

pypdf Data Schema & Taxonomy

The skill manages PDF data and metadata through several focused operations. Below is the schema of actions and their outputs:

Command Purpose Output Format
info Inspects metadata and page count Structured text in stdout
extract-text Pulls text content from pages Plain text stream
merge Concatenates multiple PDF files A single .pdf file
split Separates pages into a directory Multiple .pdf files
rotate Adjusts page orientation A modified .pdf file
extract-pages Isolates specific pages A new .pdf file

pypdf Advanced Features

  • Support for 0-indexed page targeting allowing for granular control over large documents within Openclaw Skills.
  • Deterministic rotation angles (90, 180, 270) to fix orientation issues programmatically.
  • Multi-input merging for complex document assembly tasks.
  • Directory-based splitting for rapid batch processing of document pages.
  • Seamless stdout redirection for text extraction, enabling easy piping to other analysis tools.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*