All skills
github avatar

/pdftk-server

@7953993 official
by githubgithub/awesome-copilot40k stars
5,040

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.

Use this Skill: https://skilld.dev/gh/github/awesome-copilot/pdftk-server

This session only. Nothing lands on disk.

referencesdownload.md

≈810 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Download

PDFtk provides an installer for Windows. Many Linux distributions provide a PDFtk package you can download and install using their package manager.

Microsoft Windows

Download the PDFtk Server installer for Windows 10 and 11 using the following command:

winget install --id PDFLabs.PDFtk.Server

Then run the installer:

.\pdftk_server-2.02-win-setup.exe

After installation, open a command prompt, type pdftk and press Enter. PDFtk will respond by displaying brief usage information.

Linux

On Debian/Ubuntu-based distributions:

sudo apt-get install pdftk

On Red Hat/Fedora-based distributions:

sudo dnf install pdftk

PDFtk Server GPL License

PDFtk Server (pdftk) is not public domain software. It can be installed and used at no charge under its GNU General Public License (GPL) Version 2. PDFtk uses third-party libraries. The licenses and source code for these libraries are described here under Third-Party Materials.

PDFtk Server Redistribution License

If you plan to distribute PDFtk Server as part of your own software, you will need a PDFtk Server Redistribution License. The exception to this rule is if your software is licensed to the public under the GPL or another compatible license.

The commercial redistribution license allows you, subject to the terms of the license, to distribute an unlimited number of PDFtk Server binaries as part of one distinct commercial product. Please read the full license:

PDFtk Server Redistribution License (PDF)

Now available for $995:

PDFtk Server Redistribution License

Build PDFtk Server from Source

PDFtk Server can be compiled from its source code. PDFtk Server is known to compile and run on Debian, Ubuntu Linux, FreeBSD, Slackware Linux, SuSE, Solaris and HP-UX.

Download and unpack the source:

curl -LO https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk-2.02-src.zip
unzip pdftk-2.02-src.zip

Review the pdftk license information in: license_gpl_pdftk/readme.txt.

Review the Makefile provided for your platform and confirm that TOOLPATH and VERSUFF suit your installation of gcc/gcj/libgcj. If you run apropos gcc and it returns something like gcc-4.5, then set VERSUFF to -4.5. The TOOLPATH probably does not need to be set.

Change into the pdftk sub-directory and run:

cd pdftk
make -f Makefile.Debian

Substitute your platform's Makefile filename as needed.

PDFtk has been built using gcc/gcj/libgcj versions 3.4.5, 4.4.1, 4.5.0, and 4.6.3. PDFtk 1.4x fails to build on gcc 3.3.5 due to missing libgcj features. If you are using gcc 3.3 or older, try building pdftk 1.12 instead.

Source: SKILL.md on GitHub

1 warning16d5 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    This skill provides comprehensive instructions for using the pdftk command-line tool to manipulate PDF files. It includes standard installation procedures for multiple operating systems and guides for common tasks like merging, splitting, and encrypting PDFs. While it involves processing external PDF documents and executing commands, these activities are central to the tool's legitimate purpose and are documented safely using illustrative examples.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: LOW · No issues

  • Runlayer7mo

    6/6 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 7953993. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 20 hours ago.

Activeupdated 8 months ago
  • CLI
  • pdftk
  • pdf
  • command-line
  • merge
  • encryption
  • forms
  • watermark

README badge

README badge for github/awesome-copilot/pdftk-server

Wraps the pdftk command-line tool for PDF manipulation tasks like merging, splitting, rotating, encrypting, decrypting, filling forms, watermarking, and extracting metadata. Use this skill when you need to perform batch PDF operations from the command line without a GUI tool.

Generated from the current SKILL.md.

Does pdftk work on Windows, macOS, and Linux?
Yes. Installation differs by platform: Windows uses winget, macOS uses Homebrew (pdftk-java), and Linux uses apt or dnf depending on the distribution.
Can this skill encrypt and decrypt PDFs?
Yes. You can encrypt with owner and user passwords using the owner_pw and user_pw flags, and decrypt by providing the password with input_pw.
Does this handle PDF form filling?
Yes. You can populate form fields from FDF/XFDF data files and flatten the result to prevent further edits.
Can I repair corrupted PDF files?
Yes. Running pdftk on a broken PDF and writing the output often repairs corruption automatically.
What is required to use this skill?
PDFtk Server must be installed on your system and accessible from the command line. Verify installation by running pdftk --version.

Generated from the current SKILL.md. These answers refresh after source changes.