


For example, if you want pages named: page_01.pdf, page_02.pdf, etc., pass Yourself, supply a printf-styled format string via the output section.
PDF TOOLKIT DOCUMENTATION PDF
If the output section is omitted, then PDF pages are named: pg_%04d.pdf, e.g.: pg_0001.pdf, pg_0002.pdf, etc. Also creates a report named doc_data.txt which is the same as the output fromĭump_data. Splits a single, input PDF document into individual pages. This feature was designed to help collate PDF pages after scanning Ranges can use all of the features described above forĬat, like reverse page ranges, multiple ranges from a single PDF, and page rotation. If one range runs out of pages, it continues with the remaining ranges. Works like the cat operation except that it takes one page at a time from each page range toĪssemble the output PDF. Shuffle Collates pages from input PDFs to create a new PDF. * The handle may be used alone to represent the entire PDF document, e.g., B1-end is the same as B.ġ-endE - rotate entire document 90 degreesĥ 11 20 - take single pages from input PDFĥ-25oddW - take odd pages in range, rotate 90 degreesĦ-1 - reverse pages in range from input PDFīend-1odd - take all odd pages from in2.pdf in reverse orderĪ1-21 Beven A72 - assemble pages from both in1.pdf and in2.pdfĪW - rotate entire in1.pdf document 90 degreesĪ2-30evenL - take the even pages from the range, remove 90 degrees from each page's rotationĪevenW AoddE - apply rotations to even pages, odd pages from in1.pdf * Reference a single page by omitting the ending page number. * The keyword end may be used to reference the final page of a document instead of a page number. If no arguments are passed to cat, then pdftk combines all input PDFs in the order they were given to create the output. L, R, and D make relative adjustments to a page's The page rotation setting can cause pdftk to rotate pages and documents. The odd qualifier works similarly to the even. The even qualifier causes pdftk to use only the even-numbered PDF pages, so 1-6even yields pages 2, 4 and 6 in that order. If the handle is omitted from the page range, then the pages are taken from the first input PDF. Qualifier can be even or odd, and the page rotation can be N, S, E, W, L, R, or D. Where the handle identifies one of the input PDF files, and the beginning and ending page numbers are one-based references to pages in the PDF file, and the Page order in the new PDF is specified by the order of the given page ranges. Some operations takes additional arguments, described below.Ĭat Catenates pages from input PDFs to create a new PDF. Update_info_utf8, attach_files, unpack_files. Stamp, multistamp, dump_data, dump_data_utf8, dump_data_fields, dump_data_fields_utf8, update_info, Output options, like encryption and compression.Īvailable operations are: cat, shuffle, burst, generate_fdf, fill_form, background, multibackground, Filter mode takes only one PDF input and creates a new PDF after applying all of the If this optional argument is omitted, then pdftk runs in 'filter' mode.
PDF TOOLKIT DOCUMENTATION PASSWORD
When running in do_ask mode, pdftk will prompt you for a password if the supplied password is incorrect or none was given. If the input PDF has no passwords, then no password should be given. If the input PDF has no owner password, then the user password Most pdftk features require that encrypted input PDF are accompanied by the ~owner~ password. If handles are not given, then passwords are associated with input files by order. Input PDF owner passwords, if necessary, are associated with files by using their handles: They are useful when specifying PDF passwords or page ranges, later. Input files can be associated with handles, where a handle is a single, upper-case letter: To pass a single PDF into pdftk via stdin. If you plan to combine these PDFs (without using handles) then list files in the order you want them combined.

* Uncompress and Re-Compress Page Streams * Attach Files to PDF Pages or the PDF Document * Report PDF Metrics such as Metadata and Bookmarks * Apply a Background Watermark or a Foreground Stamp * Generate FDF Data Stencils from PDF Forms * Fill PDF Forms with X/FDF Data and/or Flatten Forms * Decrypt Input as Necessary (Password Required) * Merge PDF Documents or Collate PDF Page Scans Pdftk is a simple toolįor doing everyday things with PDF documents. If PDF is electronic paper, then pdftk is an electronic staple-remover, hole-punch, binder, secret-decoder-ring, and X-Ray-glasses. Dump_data_fields | dump_data_fields_utf8 |įor Complete Help: pdftk -help Description
