pdftk Server
by @jhauga
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 dec...
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
pdftk --version| 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 |
clawhub install pdftk-server