Projects / PDFtk Server

PDFtk Server

PDFtk Server is a simple commandline tool for doing everyday things with PDF documents. You can use it to merge PDF documents or collate PDF page scans, split PDF pages into a new document, rotate PDF documents or pages, decrypt input as necessary (password required), encrypt output as desired, fill PDF forms with X/FDF data and/or flatten forms, generate FDF data stencils from PDF forms, apply a background watermark or a foreground stamp, report PDF metrics, bookmarks, and metadata, add/update PDF bookmarks or metadata, attach files to PDF pages or the PDF document, unpack PDF attachments, burst a PDF document into single pages, uncompress and re-compress page streams, and repair corrupted PDF files (where possible).

Tags
Licenses
Operating Systems
Implementation

RSS Recent releases

  •  06 Aug 2013 23:16

    Release Notes: This release adds many improvements, including AES decryption of input PDFs (the "owner" password is still required when decrypting a PDF), merging of bookmarks/outlines when merging full PDFs, a new rotate operation (a convenient way of rotating select pages of a single PDF), and a new dump_data_annots operation (which currently reports only link annotation information).

    Release Notes: You can now add or change a PDF’s bookmarks using update_info. You can now use multi-character input handles. Prior versions were limited to a single character, imposing an arbitrary limitation on the number of input PDFs when using handles. Handles must still be all uppercase ASCII. This release adds a means of referring to PDF pages in reverse order. By prefixing a page number with an r, it counts from the end of the document. For example, r1 is the last page, r2 is the next-to-last page, etc. Other minor changes and fixes have been added.

    •  29 Oct 2010 22:08

      Release Notes: This release adds a new feature for collating PDF page scans: shuffle. Please see the man page for details. It introduces update_info_utf8, dump_data_utf8, and dump_data_fields_utf8 to provide UTF-8 companions to update_info, dump_data, and dump_data_fields. These latter operations use XML numerical entities to encode non-ASCII characters. The burst feature now copies the metadata (including XMP) from the input file to the output pages. The Bouncy Castle library has been updated to 1.45. This release removes or replaces third-party code that wasn't compatible with pdftk's GPL license. It updates third-party license information.

      •  06 Oct 2010 13:55

        Release Notes: This maintenance release fixes many bugs and adds a couple features.

        •  18 Dec 2006 09:28

        Release Notes: A bug with creation of bloated PDFs from input PDF pages with links was fixed. The drop_xfa option was dropped to be able to fill forms created with newer versions of Acrobat or Adobe Designer. The stamp operation was added. Support for XFDF was added to the form_fill operation.

        RSS Recent comments

        16 Feb 2013 10:28 Avatar jengelh

        Uh, does this really require Java/gcj for building? If so, it should say so on the Freecode page.

        25 May 2009 00:35 ywirasin Thumbs up

        Sid,

        Really a big fan of your solution and appreciate what you've done for PDF processing in the PHP realm. One of the strongest advantages I've seen in this solution is that it handles form fields appropriately versus disabling them. One thing I noticed was that the 1.10 change fixed the issue of merging PDFs and having "duplicate" fields, however I am using Adobe Acrobat 9 to do so and therefore assume it's a legitimate case. If this is a legitimate case, would you be able to add a command line argument that allows for disabling the renaming feature? I am desperately in need of a build that allows for echoing a field through merged pages.

        Again - great job with this and really hope you're able to support this amazing tool!

        24 Nov 2007 00:11 billposer

        Re: very useful

        > This tool certiainly does one thing very

        > well but it strays from the Unix

        > philosophy by having a very non-standard

        > command-line interface.

        True. I find the interface curiously similar to (though not quite as complex and confusing as) that of sox, the audio "Swiss army knife".

        02 Mar 2006 01:05 early_adopter

        Re: very useful

        > This is a wonderful, useful tool that

        > follows the Unix philosophy of doing one

        > thing, and doing it well. It's given me

        > solutions to a lot of problems I had

        > with manipulating pdfs. Good job!

        This tool certiainly does one thing very well but it strays from the Unix philosophy by having a very non-standard command-line interface.

        21 Nov 2005 16:49 bcrowell Thumbs up

        very useful
        This is a wonderful, useful tool that follows the Unix philosophy of doing one thing, and doing it well. It's given me solutions to a lot of problems I had with manipulating pdfs. Good job!

        Screenshot

        Project Spotlight

        SeaMonkey

        An all-in-one Internet application suite.

        Screenshot

        Project Spotlight

        fcmm

        A fast concurrent memoization map.