What it does
Skill for using the command-line tool pdftk (PDFtk Server) for working with PDF files
Skills ZICQ category:Documents pdftk-server
Skill for using the command-line tool pdftk (PDFtk Server) for working with PDF files. Use when asked to merge PDFs, split PDFs, rotate pages, encrypt or decrypt PDFs, fill PDF forms, apply watermarks, stamp overlays, extract metadata, burst documents into pages, repair corrupted PDFs, attach or extract files, or perform any PDF manipulation from the command line.
Official URL:skills.sh
Intro in this page language first. The official description stays in its original wording; we do not rewrite SKILL.md.
Skill for using the command-line tool pdftk (PDFtk Server) for working with PDF files
This Skill
Per Agent Skills progressive disclosure: name and description load at startup (~100 tokens); the full SKILL.md body loads when the skill activates; scripts/, references/, and assets/ load only as needed. This file's sections: PDFtk Server; When to Use This Skill; Prerequisites; Step-by-Step Workflows; Merge Multiple PDFs; Split a PDF into Individual Pages. It includes spec-recommended sections: step-by-step instructions.
File analysis: besides SKILL.md, the body references references/pdftk-man-page.md, references/pdftk-cli-examples.md, references/download.md, references/pdftk-server-license.md, references/third-party-materials.md. Those resources load on demand.
PDFtk ServerWhen to Use This SkillPrerequisitesStep-by-Step WorkflowsMerge Multiple PDFsSplit a PDF into Individual PagesExtract Specific PagesRemove Specific PagesRotate PagesEncrypt a PDFDecrypt a PDFFill a PDF Form
Source category:skills.sh agent-skill
namepdftk-serverdescriptionreferences/pdftk-man-page.mdreferences/pdftk-cli-examples.mdreferences/download.mdreferences/pdftk-server-license.mdreferences/third-party-materials.mdThese paths are extracted from the text. Check the upstream package to verify the files exist.
Invocation syntax and available tools depend on your Agent client. Client integration guide ↗
Choose the target agent and installation scope, keep referenced package files, then verify the skill appears in the client's catalog.
This skill references supporting files. Retrieve the complete directory from the source; copying SKILL.md alone may leave missing dependencies.
Copy these instructions to a compatible agent and confirm the target directory matches your client.
Install the agent skill "pdftk-server" into my project. The full SKILL.md and official description are at https://zicq.com/en/skills/skl-d6275fd0f1c23d4a-Pdftk-Server.html Save it as .cursor/skills/pdftk-server/SKILL.md or .claude/skills/pdftk-server/SKILL.md and keep the frontmatter name and description exactly as-is. This skill also ships scripts/, references/, or assets/ — fetch the whole folder from https://github.com/github/awesome-copilot instead of creating only a SKILL.md.
Requires Node.js and npx. First inspect the repository's skill list to confirm the name.
npx skills add 'https://github.com/github/awesome-copilot' --list
npx skills add 'https://github.com/github/awesome-copilot' --skill 'pdftk-server'
The CLI lets you choose the agent interactively. The default scope is the project; use -g for user scope. Confirm package availability with the discovery command, then use npx skills list to inspect installed skills.
PDFtk Server is a command-line tool for working with PDF documents. It can merge, split, rotate, encrypt, decrypt, watermark, stamp, fill forms, extract metadata, and manipulate PDFs in a variety of ways.
winget install --id PDFLabs.PDFtk.Serverbrew install pdftk-javasudo apt-get install pdftksudo dnf install pdftkpdftk --versionpdftk file1.pdf file2.pdf cat output merged.pdf
Using handles for more control:
pdftk A=file1.pdf B=file2.pdf cat A B output merged.pdf
pdftk input.pdf burst
Extract pages 1-5 and 10-15:
pdftk input.pdf cat 1-5 10-15 output extracted.pdf
Remove page 13:
pdftk input.pdf cat 1-12 14-end output output.pdf
Rotate all pages 90 degrees clockwise:
pdftk input.pdf cat 1-endeast output rotated.pdf
Set an owner password and a user password with 128-bit encryption (default):
pdftk input.pdf output secured.pdf owner_pw mypassword user_pw userpass
Remove encryption using the known password:
pdftk secured.pdf input_pw mypassword output unsecured.pdf
Populate form fields from an FDF file and flatten to prevent further edits:
pdftk form.pdf fill_form data.fdf output filled.pdf flatten
Place a single-page PDF behind every page of the input (input should have transparency):
pdftk input.pdf background watermark.pdf output watermarked.pdf
Place a single-page PDF on top of every page of the input:
pdftk input.pdf stamp overlay.pdf output stamped.pdf
Export bookmarks, page metrics, and document information:
pdftk input.pdf dump_data output metadata.txt
Pass a broken PDF through pdftk to attempt automatic repair:
pdftk broken.pdf output fixed.pdf
Interleave separately scanned even and odd pages:
pdftk A=even.pdf B=odd.pdf shuffle A B output collated.pdf
| Issue | Solution |
|-------|----------|
| pdftk command not found | Verify installation; check that pdftk is in your system PATH |
| Cannot decrypt PDF | Ensure you are providing the correct owner or user password via input_pw |
| Output file is empty or corrupt | Check input file integrity; try running pdftk input.pdf output repaired.pdf first |
| Form fields not visible after fill | Use the flatten flag to merge fields into the page content |
| Watermark not appearing | Ensure the input PDF has transparent regions; use stamp for opaque overlays |
| Permission denied errors | Check file permissions on input and output paths |
Bundled reference documents in the references/ folder:
Documents
Typed knowledge graph for structured agent memory and composable skills. Use when creating/querying entities (Person, Project, Task, Event, …
Documents
Edit PDFs with natural-language instructions using the nano-pdf CLI.
Documents
Create, inspect, and edit Microsoft Word documents and DOCX files with reliable styles, numbering, tracked changes, tables, sections, and co…
Documents
Search the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics.