Official agent skill

Pdftk Server

by github in github/awesome-copilot

Skill for using the command-line tool pdftk (PDFtk Server) for working with PDF files.

OfficialMITAuto-check: notesDocuments & Office

Install Pdftk Server

skills CLI
$ npx skills add github/awesome-copilot --skill pdftk-server -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install github/awesome-copilot pdftk-server --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/github/awesome-copilot.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/pdftk-server .claude/skills/pdftk-server && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pdftk-server
GitHub stars
40k
Used in
1 other repo
Token cost
~1.2k tokens
SKILL.md length
435 words
Files
6 (incl. references)
Skills in repo
417
Repo updated
First seen
Licence
MIT

At a glance

Skill for using the command-line tool pdftk (PDFtk Server) for working with PDF files.

  • Asked to merge PDFs
  • SKILL.md covers When to Use This Skill, Prerequisites, Step-by-Step Workflows and Troubleshooting, plus 1 more section
  • Calls winget, brew and apt-get
  • Apply watermarks

What it does

Pdftk Server is an agent skill from github/awesome-copilot, published by the product's own GitHub organization. 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.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including reference files (for example `references/download.md`, `references/pdftk-cli-examples.md` and `references/pdftk-man-page.md`).

It sits in Documents & Office, covering PDF. The repository describes itself as: Community-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot. The licence is MIT.

When your agent uses it

  • Asked to merge PDFs
  • Apply watermarks
  • Extract metadata
  • Burst documents into pages

Example prompts

  • “/pdftk-server”

What it can do on your machine

Read from SKILL.md and the folder at commit 727ff2e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • winget
    • brew
    • apt-get
    • dnf

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Pdftk Server loads about 1.2k tokens when it runs, and up to ~7.3k if it reads all its reference files. Until then it costs about 95 tokens; SKILL.md has 435 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~95
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~7.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteRuns commands with sudoSKILL.md:30
    - **Linux (Debian/Ubuntu)**: `sudo apt-get install pdftk`
  • NoteRuns commands with sudoSKILL.md:31
    - **Linux (Red Hat/Fedora)**: `sudo dnf install pdftk`

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from github/awesome-copilot at commit 727ff2e, republished under its MIT licence (© github). 435 words, ~1,186 tokens.

Download SKILL.mdSave it as .claude/skills/pdftk-server/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
pdftk-server
description
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.

PDFtk Server

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.

When to Use This Skill

  • Merging or joining multiple PDF files into one
  • Splitting or bursting a PDF into individual pages
  • Rotating PDF pages
  • Encrypting or decrypting PDF files
  • Filling PDF form fields from FDF/XFDF data
  • Applying background watermarks or foreground stamps
  • Extracting PDF metadata, bookmarks, or form field information
  • Repairing corrupted PDF files
  • Attaching or extracting files embedded in PDFs
  • Removing specific pages from a PDF
  • Collating separately scanned even/odd pages
  • Compressing or decompressing PDF page streams

Prerequisites

  • PDFtk Server must be installed on the system
    • 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
  • Access to a terminal or command prompt
  • Verify installation by running pdftk --version

Step-by-Step Workflows

Merge Multiple PDFs
bash
pdftk file1.pdf file2.pdf cat output merged.pdf

Using handles for more control:

bash
pdftk A=file1.pdf B=file2.pdf cat A B output merged.pdf
Split a PDF into Individual Pages
bash
pdftk input.pdf burst
Extract Specific Pages

Extract pages 1-5 and 10-15:

bash
pdftk input.pdf cat 1-5 10-15 output extracted.pdf
Remove Specific Pages

Remove page 13:

bash
pdftk input.pdf cat 1-12 14-end output output.pdf
Rotate Pages

Rotate all pages 90 degrees clockwise:

bash
pdftk input.pdf cat 1-endeast output rotated.pdf
Encrypt a PDF

Set an owner password and a user password with 128-bit encryption (default):

bash
pdftk input.pdf output secured.pdf owner_pw mypassword user_pw userpass
Decrypt a PDF

Remove encryption using the known password:

bash
pdftk secured.pdf input_pw mypassword output unsecured.pdf
Fill a PDF Form

Populate form fields from an FDF file and flatten to prevent further edits:

bash
pdftk form.pdf fill_form data.fdf output filled.pdf flatten
Apply a Background Watermark

Place a single-page PDF behind every page of the input (input should have transparency):

bash
pdftk input.pdf background watermark.pdf output watermarked.pdf
Stamp an Overlay

Place a single-page PDF on top of every page of the input:

bash
pdftk input.pdf stamp overlay.pdf output stamped.pdf
Show full SKILL.md (167 more words)Show less
Extract Metadata

Export bookmarks, page metrics, and document information:

bash
pdftk input.pdf dump_data output metadata.txt
Repair a Corrupted PDF

Pass a broken PDF through pdftk to attempt automatic repair:

bash
pdftk broken.pdf output fixed.pdf
Collate Scanned Pages

Interleave separately scanned even and odd pages:

bash
pdftk A=even.pdf B=odd.pdf shuffle A B output collated.pdf

Troubleshooting

IssueSolution
pdftk command not foundVerify installation; check that pdftk is in your system PATH
Cannot decrypt PDFEnsure you are providing the correct owner or user password via input_pw
Output file is empty or corruptCheck input file integrity; try running pdftk input.pdf output repaired.pdf first
Form fields not visible after fillUse the flatten flag to merge fields into the page content
Watermark not appearingEnsure the input PDF has transparent regions; use stamp for opaque overlays
Permission denied errorsCheck file permissions on input and output paths

References

Bundled reference documents in the references/ folder:

© github, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files (references) in skills/pdftk-server of github/awesome-copilot.

  • SKILL.md
  • references/download.md
  • references/pdftk-cli-examples.md
  • references/pdftk-man-page.md
  • references/pdftk-server-license.md
  • references/third-party-materials.md

Open the folder on GitHubat commit 727ff2e

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in github/awesome-copilot, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Pdftk Server next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Pdftk Server compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Pdftk Server this skillgithub/awesome-copilot40k1 repos~1.2kAutomated safety check: NotesMIT
MarkitdownImCa0/just-laws78114 repos~3.2kAutomated safety check: NotesMIT
Gzh Designisjiamu/gzh-design-skill3.9k1 repos~2.2kAutomated safety check: PassAGPL-3.0
GenOffice Document CLIgenspark-ai/genoffice8.8k—~19kAutomated safety check: PassApache-2.0
Harness Book Best Practicewquguru/harness-books3.2k—~4.1kAutomated safety check: PassNone
Bookforge Korean Ebook PDF Makergongnyang/bookforge3141 repos~1.7kAutomated safety check: PassMIT

Similar skills

  • Markitdown

    ImCa0/just-laws

    Convert files and office documents to Markdown. An agent skill from ImCa0/just-laws.

    781 GitHub starsUsed in 14 repos~3.2k tokens
    Documents & OfficeAuto-check: notes
  • Gzh Design

    isjiamu/gzh-design-skill

    微信公众号文章排版引擎,将 Markdown 转换为可直接粘贴到公众号编辑器的 HTML。主题风格从 references/theme-index.md 注册的自定义主题库中选取,自动章节编号、关键词下划线标记、引言卡片、目录导航、代码块、图片/GIF、作者签名。支持 Markdown / Word(.docx) / PDF / 纯文本输入(非 Markdown…

    3.9k GitHub starsUsed in 1 repo~2.2k tokens
    Documents & OfficeAuto-check passed
  • GenOffice Document CLI

    genspark-ai/genoffice

    Creates, converts, reads and edits real pptx, xlsx, docx and PDF files locally through the genoffice command line.

    8.8k GitHub stars~19k tokensUpdated today
    Documents & OfficeAuto-check passed
  • Harness Book Best Practice

    wquguru/harness-books

    Best practices for working on the Harness books repo. An agent skill from wquguru/harness-books.

    3.2k GitHub stars~4.1k tokensUpdated 5 mo ago
    Documents & OfficeAuto-check passed
  • Produces book-style Korean ebook PDFs from a topic or finished manuscript, with six design styles, real book parts and quality-check gates before output.

    314 GitHub starsUsed in 1 repo~1.7k tokens
    Documents & OfficeAuto-check passed
  • Instrument Data To Allotrope

    aws-samples/amazon-bedrock-agents-healthcare-lifesciences

    Official

    Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV.

    274 GitHub starsUsed in 2 repos~2.7k tokens
    Documents & OfficeAuto-check passed

More from github/awesome-copilot

All 417 skills in this repo
  • Acquire Codebase Knowledge

    github/awesome-copilot

    Official

    Maps an unfamiliar codebase into seven evidence-backed documents in docs/codebase/, using a scan script and templates, for onboarding or architecture write-ups.

    40k GitHub starsUsed in 1 repo~2.3k tokens
    Auto-check passed
  • Azure Architecture Autopilot

    github/awesome-copilot

    Official

    Designs Azure infrastructure from a natural-language description, or diagrams an existing resource group, then refines the design through conversation and deploys it with Bicep.

    40k GitHub starsUsed in 1 repo~1.9k tokens
    Auto-check passed
  • Draw.io Diagram Generator

    github/awesome-copilot

    Official

    Generates, edits and validates draw.io files with correct mxGraph XML, covering flowcharts, architecture, sequence, ER and UML class diagrams.

    40k GitHub starsUsed in 1 repo~4.9k tokens
    Auto-check passed
  • Credit Risk Data Cleaning

    github/awesome-copilot

    Official

    Cleans raw credit data and screens variables before loan modeling, dropping unstable, noisy or redundant features and writing an Excel report of every step.

    40k GitHub starsUsed in 1 repo~1.5k tokens
    Auto-check passed
  • Daily Focus Board

    github/awesome-copilot

    Official

    Builds a warm, browser-based daily focus board the user updates by talking to their agent, with Eisenhower priorities, a brain-dump box and kind not-today carryover.

    40k GitHub stars~3k tokensUpdated today
    Auto-check passed
  • Python Pypi Package Builder

    github/awesome-copilot

    Official

    End-to-end skill for building, testing, linting, versioning, and publishing a production-grade Python library to PyPI.

    40k GitHub starsUsed in 1 repo~4.6k tokens
    Auto-check passed

Questions about Pdftk Server

What does Pdftk Server do?

Skill for using the command-line tool pdftk (PDFtk Server) for working with PDF files. Pdftk Server is an agent skill from github/awesome-copilot, published by the product's own GitHub organization. Skill for using the command-line tool pdftk (PDFtk Server) for working with PDF files.

When should I use Pdftk Server?

Pdftk Server fits situations like: asked to merge PDFs; apply watermarks; extract metadata; burst documents into pages.

How do I install Pdftk Server in Claude Code?

Run `npx skills add github/awesome-copilot --skill pdftk-server -a claude-code`. Or copy the skill folder (skills/pdftk-server in github/awesome-copilot) into .claude/skills/pdftk-server in your project. Claude Code loads it when a task matches its description.

How do I install Pdftk Server in Codex?

Run `npx skills add github/awesome-copilot --skill pdftk-server -a codex`. Or copy the skill folder (skills/pdftk-server in github/awesome-copilot) into .agents/skills/pdftk-server in your project. Codex loads it when a task matches its description.

Can I use Pdftk Server in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add github/awesome-copilot --skill pdftk-server -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pdftk-server, .gemini/skills/pdftk-server, .github/skills/pdftk-server and .opencode/skills/pdftk-server in your project.

What does Pdftk Server need to run?

Going by SKILL.md and its folder, Pdftk Server needs the command-line tools its instructions call (winget, brew, apt-get and dnf).

Does Pdftk Server access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Pdftk Server safe to install?

Our automated static check of SKILL.md found notes only (runs commands with sudo), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Pdftk Server use?

Pdftk Server is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Pdftk Server use?

About 1.2k tokens (SKILL.md is roughly 4.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 6.1k tokens, read only when the agent opens those files.

What are the alternatives to Pdftk Server?

Skills that share tags, products or a category with Pdftk Server: Markitdown (ImCa0/just-laws, 781 stars), Gzh Design (isjiamu/gzh-design-skill, 3.9k stars), GenOffice Document CLI (genspark-ai/genoffice, 8.8k stars) and Harness Book Best Practice (wquguru/harness-books, 3.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Pdftk Server?

github (a GitHub organization, an official publisher) maintains it in github/awesome-copilot, which has 39,748 GitHub stars. The repository holds 417 skills in this directory. The repository was last updated on October 7, 2026.

Source: github/awesome-copilot on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.