PDFtk Server Skill for Openclaw

A robust command-line skill for advanced PDF manipulation, including merging, splitting, and form filling.

jhauga
v1.0.1
Feb 17, 2026
0
1.2k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install pdftk-server

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 pdftk-server 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 PDFtk Server Skill?

The PDFtk Server skill is a comprehensive toolkit for managing PDF documents directly from the command line. This skill enables developers and automated agents to perform complex document operations such as merging multiple files, bursting documents into individual pages, and applying watermarks.

As a vital component for Openclaw Skills users, it bridges the gap between raw document data and professional PDF output. It is particularly useful for server-side PDF processing where a graphical interface is unavailable, providing a programmatic way to handle everything from simple rotations to complex data-driven form filling.

PDFtk Server Skill Use Cases

  • Automated merging of multiple PDF reports into a single document.
  • Splitting large PDF books or documents into individual page files.
  • Programmatically filling PDF forms using FDF/XFDF data for automation.
  • Securing sensitive documents with 128-bit encryption and password protection.
  • Repairing corrupted PDF page streams to recover inaccessible data.
  • Applying corporate watermarks or background stamps to generated invoices.

How PDFtk Server Skill Works

  1. The user or agent invokes the pdftk command with specific operation flags like cat, burst, or fill_form.
  2. Input PDF files are read and processed by the engine based on the provided handles (e.g., A=file1.pdf).
  3. Transformations such as page rotation, encryption, or interleaving (shuffle) are applied to the document stream.
  4. Metadata is extracted or modified as required by the dump_data command.
  5. A new, modified PDF file is generated as the output, preserving or flattening the document structure.

PDFtk Server Skill Setup

Ensure PDFtk Server is installed on your system before using this Openclaw Skills integration:

  • Windows: winget install --id PDFLabs.PDFtk.Server
  • macOS: brew install pdftk-java
  • Linux (Debian/Ubuntu): sudo apt-get install pdftk
  • Linux (Red Hat/Fedora): sudo dnf install pdftk

Verify your installation by running:

pdftk --version

PDFtk Server Skill Data Schema & Taxonomy

The skill interacts with PDF files and metadata exports. The following structure describes the primary data formats used:

Component Data Type Description
Input PDF Binary The source document to be manipulated.
FDF/XFDF Text/XML Data files used for filling PDF form fields.
Metadata Text Extracted data including bookmarks and page metrics via dump_data.
Handles Variable References (A, B, etc.) used to manage multiple input streams.

PDFtk Server Skill Advanced Features

  • Collate separately scanned even and odd pages using the shuffle command.
  • Perform 128-bit encryption and password management for document security.
  • Flatten PDF forms to prevent further edits and finalize data entry.
  • Use document handles for sophisticated multi-file page selection.
  • Compress or decompress PDF page streams for optimized storage.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*