PDFtk Server

Command-line tool to merge, split, and rotate PDFs; fill forms with FDF/XFDF data and flatten them (or generate an FDF stencil from a form's fields); encrypt and decrypt with passwords; add watermarks and stamps; manage bookmarks, metadata, and attachments; repair damaged PDFs; and recompress page streams. The Java-rewritten 'Server' edition of the classic PDFtk command-line tool, maintaining the same CLI interface and command syntax as the original.

Sample Results

Real output from running this tool against a sample PDF, as part of PDFog's open-source PDF tooling benchmark.

Input: sample-brochure.pdf

Loading PDF…

dump_data_utf8

pdftk "sample-brochure.pdf" dump_data_utf8 >"sample-brochure--pdftk-server-java--dump_data_utf8.txt"

Output: sample-brochure--pdftk-server-java--dump_data_utf8.txt

InfoBegin
InfoKey: Producer
InfoValue: Prince 8.1 (www.princexml.com)
InfoBegin
InfoKey: Title
InfoValue: Real Estate Example Page
NumberOfPages: 1
BookmarkBegin
BookmarkTitle: 221 Queen Street, Melbourne VIC 3000
BookmarkLevel: 1
BookmarkPageNumber: 1
PageMediaBegin
PageMediaNumber: 1
PageMediaRotation: 0
PageMediaRect: 0 0 595 842
PageMediaDimensions: 595 842