Labsco
github logo

pdftk-server

✓ Official36,200

by github · part of github/awesome-copilot

Command-line PDF manipulation covering merging, splitting, encryption, form filling, watermarking, and metadata extraction. Supports 12+ operations including merge, split, rotate, encrypt/decrypt, burst, stamp, watermark, and repair Fill PDF forms from FDF/XFDF data with optional flattening to lock filled fields Extract and manipulate metadata, bookmarks, and embedded files; collate separately scanned pages Cross-platform installation via package managers (Windows, macOS, Linux) with...

🔥🔥🔥✓ VerifiedFreeQuick setup
🧩 One of 7 skills in the github/awesome-copilot package — works on its own, and pairs well with its siblings.

Command-line PDF manipulation covering merging, splitting, encryption, form filling, watermarking, and metadata extraction. Supports 12+ operations including merge, split, rotate, encrypt/decrypt, burst, stamp, watermark, and repair Fill PDF forms from FDF/XFDF data with optional flattening to lock filled fields Extract and manipulate metadata, bookmarks, and embedded files; collate separately scanned pages Cross-platform installation via package managers (Windows, macOS, Linux) with...

Inspect the full instructions your agent will receiveExpand

This is the exact playbook injected into your agent when the skill activates — shown here so you can audit it before installing. You don't need to read it to use the skill.

by github

Command-line PDF manipulation covering merging, splitting, encryption, form filling, watermarking, and metadata extraction. Supports 12+ operations including merge, split, rotate, encrypt/decrypt, burst, stamp, watermark, and repair Fill PDF forms from FDF/XFDF data with optional flattening to lock filled fields Extract and manipulate metadata, bookmarks, and embedded files; collate separately scanned pages Cross-platform installation via package managers (Windows, macOS, Linux) with... npx skills add https://github.com/github/awesome-copilot --skill pdftk-server Download ZIPGitHub36.2k

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

Step-by-Step Workflows

Merge Multiple PDFs

Copy & paste — that's it
pdftk file1.pdf file2.pdf cat output merged.pdf

Using handles for more control:

Copy & paste — that's it
pdftk A=file1.pdf B=file2.pdf cat A B output merged.pdf

Split a PDF into Individual Pages

Copy & paste — that's it
pdftk input.pdf burst

Extract Specific Pages

Extract pages 1-5 and 10-15:

Copy & paste — that's it
pdftk input.pdf cat 1-5 10-15 output extracted.pdf

Remove Specific Pages

Remove page 13:

Copy & paste — that's it
pdftk input.pdf cat 1-12 14-end output output.pdf

Rotate Pages

Rotate all pages 90 degrees clockwise:

Copy & paste — that's it
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):

Copy & paste — that's it
pdftk input.pdf output secured.pdf owner_pw mypassword user_pw userpass

Decrypt a PDF

Remove encryption using the known password:

Copy & paste — that's it
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:

Copy & paste — that's it
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):

Copy & paste — that's it
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:

Copy & paste — that's it
pdftk input.pdf stamp overlay.pdf output stamped.pdf

Extract Metadata

Export bookmarks, page metrics, and document information:

Copy & paste — that's it
pdftk input.pdf dump_data output metadata.txt

Repair a Corrupted PDF

Pass a broken PDF through pdftk to attempt automatic repair:

Copy & paste — that's it
pdftk broken.pdf output fixed.pdf

Collate Scanned Pages

Interleave separately scanned even and odd pages:

Copy & paste — that's it
pdftk A=even.pdf B=odd.pdf shuffle A B output collated.pdf

References

Bundled reference documents in the references/ folder: