pdftk-server

Merge, split, rotate, encrypt, decrypt, and fill PDF forms via command-line tools.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/serotoninboi/claudine-ai-v3.1 --skill pdftk-server-serotoninboi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdftk-server
Source: https://github.com/serotoninboi/claudine-ai-v3.1/tree/main/.kilocode/skills/pdftk-server
Command: npx skills add https://github.com/serotoninboi/claudine-ai-v3.1 --skill pdftk-server-serotoninboi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a powerful command-line interface for comprehensive PDF manipulation, addressing tasks that require advanced control over PDF documents beyond simple viewing or editing.

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 extract specific pages from documents.
  • Security: Encrypt and decrypt PDFs with password protection.
  • Form Handling: Fill PDF forms with data from FDF/XFDF files and flatten them.
  • Watermarking & Stamping: Apply background watermarks or foreground stamps to documents.
  • Metadata & Repair: Extract PDF metadata and attempt to repair corrupted files.
  • Use Case: You need to merge several scanned documents into a single, password-protected PDF for secure archival.

Quick Start

Use the pdftk-server skill to merge file1.pdf and file2.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?

PDF merging is performed by executing a command that specifies multiple input files and an output name. This combines separate documents into a single, unified file for easier distribution and archival.

Can I encrypt and decrypt PDFs with password protection?

Yes, you can encrypt and decrypt PDFs with password protection. The command-line tool applies security restrictions to the document, ensuring that only authorized users with the password can access or modify the PDF content.

How do I fill PDF forms with data from FDF or XFDF files?

Filling PDF forms involves passing FDF or XFDF data files to the command-line processor. The tool maps the data fields to the form fields in the PDF and can optionally flatten the output to make the entries permanent.

What is the best way to split a PDF into individual pages?

Splitting a PDF into individual pages is done by running a command that breaks a single input document into multiple output files. This approach extracts each page as a separate PDF for granular document processing.

Does this command-line tool support extracting PDF metadata and repairing corrupted files?

Yes, the command-line tool supports extracting PDF metadata and attempting to repair corrupted files. It reads the document properties to extract metadata and runs recovery operations to fix damaged PDF structures.

How do I apply watermarks and stamps to a PDF document?

Applying watermarks and stamps involves using a command to overlay background watermarks or foreground stamps onto the PDF. This adds visual branding or security marks directly onto the document pages.