PDFtk
$ pdftk Community Low Riskpdftk (pdftk-java) is the actively maintained Java port of the classic PDF Toolkit. It handles page assembly (cat), splitting (burst), metadata/form-field dumping (dump_data, dump_data_fields), and AcroForm filling (fill_form) with simple positional keywords.
brew install pdftk-java AcroForm inspection (dump_data_fields) and page concatenation (cat) work directly on local files without MCP.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Non-interactive keyword-driven CLI, but outputs custom key-value blocks (InfoBegin/FieldName) instead of JSON and has no --dry-run.
dump_data_utf8emits line-oriented key-value text, not JSON- Positional keywords (
cat,output) differ from standard--flagconventions
Refuses to overwrite input files in-place (output must differ from inputs), though burst writes multiple pg_XXXX.pdf files into CWD if unconfigured.
- Prevents direct input-file overwrite;
burstwrites files to CWD by default
Cross-platform via brew install pdftk-java and Linux packages, but requires a Java Runtime Environment (JRE) with JVM startup latency.
- Depends on Java runtime (
openjdk) for execution
One of the few lightweight CLIs with clean AcroForm inspection (dump_data_fields_utf8) and FDF/XFDF form filling (fill_form).
- Supports form filling, stamping, rotation, and page ranges
Community-maintained Java fork (pdftk-java) that revived abandoned native PDFtk Server on modern systems.
- Active
pdftk-java/pdftkrepository on GitLab
Clear README and pdftk --help examples, though non-standard keyword grammar requires consulting examples.
- Built-in
pdftk --helpand GitLab documentation
Security, Auth & Guardrails
None required; optional input_pw keyword reads local PDF passwords inline.
Free GPL-2.0-or-later open-source Java CLI.
# PDFtk (pdftk) Agent Rules - Always verify target output paths; `pdftk` rejects overwriting an input file directly but will overwrite distinct `output` files. - Use `dump_data_utf8` and `dump_data_fields_utf8` to avoid ASCII escaping on non-English PDFs.
Agent-Ready Command Recipes
Safe Read-Only Queries
pdftk input.pdf dump_data_utf8
Prints key-value document metadata, bookmarks, and page counts to stdout.
pdftk form.pdf dump_data_fields_utf8
Outputs field names, types, and current values for programmatic form filling.
Controlled Writes & Previews
pdftk a.pdf b.pdf cat output merged.pdf
Combines a.pdf and b.pdf sequentially into merged.pdf without modifying inputs.
Strengths for Agents
- + Reliable AcroForm inspection (
dump_data_fields_utf8) and filling (fill_form). - + Simple handle syntax (
A=a.pdf B=b.pdf cat A1-3 B2 output out.pdf) for selective page assembly.
Caveats & Pitfalls
- ! Requires a JVM/JRE runtime, adding startup overhead compared to
qpdformutool. - ! Outputs
InfoKey/FieldNamestanzas rather than JSON;burstwritespg_*.pdfto the working directory unless anoutputpattern is given.