pdftk-server

Automate PDF merging, splitting, rotating, encrypting, and form filling with pdftk.

Updated Feb 15, 2026
One-click install
npx skills add https://github.com/jhauga/clawHub-skills --skill pdftk-server-jhauga
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdftk-server
Source: https://github.com/jhauga/clawHub-skills/tree/main/pdftk-server
Command: npx skills add https://github.com/jhauga/clawHub-skills --skill pdftk-server-jhauga

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a powerful command-line interface for a wide range of PDF manipulation tasks, from merging and splitting to encryption and form filling, eliminating the need for manual, repetitive operations.

Core Features & Use Cases

  • PDF Merging & Splitting: Combine multiple PDFs into one or break a single PDF into individual pages.
  • Page Manipulation: Rotate, remove, or reorder pages within a PDF document.
  • Security: Encrypt and decrypt PDFs with password protection.
  • Form Handling: Fill PDF form fields and extract form data.
  • Metadata & Repair: Extract document information and attempt to repair corrupted PDFs.
  • Use Case: You have a scanned document with odd and even pages separated. Use this Skill to interleave them into a single, correctly ordered PDF.

Quick Start

Use the pdftk-server skill to merge the files 'document1.pdf' and 'document2.pdf' into a new file named 'merged.pdf'.

Frequently Asked Questions about pdftk-server

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

FAQPage Schema
How do I merge multiple PDF files into a single document from the command line?

Merge PDF files by invoking the command-line tool to combine multiple documents into a single output PDF. You can specify input files and define the target filename for the merged result.

Can I split a PDF into individual pages and reorder them?

Splitting a PDF into individual pages and reordering them is fully supported. The tool can break a single PDF into separate pages or extract and rearrange specific pages into a new document.

How do I encrypt a PDF with password protection using a command-line tool?

Encrypt a PDF with password protection by executing the command-line encryption function. The tool applies security settings to the document, restricting access and permissions for the output file.

What's the best way to fill PDF form fields automatically?

Fill PDF form fields automatically by passing data to the command-line form filling function. The tool processes the input PDF and populates the form fields, outputting a completed document.

Do I need to install anything before using this PDF manipulation tool?

You need to install the pdftk-server executable and ensure it is accessible in the system's PATH. This command-line tool acts as the underlying engine for all PDF manipulation tasks.

Can a corrupted PDF be repaired using command-line tools?

A corrupted PDF can be repaired using the tool's repair function. It attempts to reconstruct the damaged document structure and extract recoverable data into a new, valid PDF file.