
You can use this prefix in ranges, too, for example r3-r1 is the last three pages of a PDF. For example, page r1 is the last page of the document, r2 is the next-to-last page of the document, and rend is theįirst page of the document. * You can reference page numbers in reverse order by prefixing them with the letter r.
#Pdf form filler ubuntu pdf
* The handle may be used alone to represent the entire PDF document, e.g., B1-end is the same as B. * 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. left, right, and down make relative adjustments to a page's rotation. Each option sets the page rotation as follows (in degrees): north: 0, east: 90, south: 180, west: 270, left: -90, right: +90,ĭown: +180. The page rotation setting can cause pdftk to rotate pages and documents. The odd qualifier works similarly to the even.įrom a valid page range, another pages can be subtracted using ~. 6-1even yields pages 6, 4 and 2 in that order. 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. If no pages are specified for any of the input PDFs, then the input PDFs' bookmarks are also merged and included in the If a PDF handle is given but no pages are specified, then the entire PDF is used. Rotation can be north, south, east, west, left, right, or down. The qualifier can be even or odd, and the page 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. Specified by the order of the given page ranges. Use cat to merge PDF pages or to split PDF pages from documents. Filter mode takes only one PDF input and creates a new PDF after applying all of the output options, like encryption and compression.Īssembles (catenates) pages from input PDFs to create a new PDF. If this optional argument is omitted, then pdftk runs in 'filter' mode. Some operations takes additional arguments, described below.
#Pdf form filler ubuntu password
When running in do_ask mode, pdftk will prompt you for a password if the supplied password is incorrect or none was given.Īvailable operations are: cat, shuffle, burst, rotate, generate_fdf, fill_form, background, multibackground, stamp, multistamp, dump_data, dump_data_utf8, dump_data_fields, dump_data_fields_utf8,ĭump_data_annots, update_info, update_info_utf8, attach_files, unpack_files. Passwords, then no password should be given. If the input PDF has no owner password, then the user password must be given, instead. 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.įor example: A=input1.pdf QT=input2.pdf M=input3.pdf Input filesĬan be associated with handles, where a handle is one or more upper-case letters: Use - 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Ī list of the input PDF files. * Attach Files to PDF Pages or the PDF Document

* Report PDF Metrics, Bookmarks and Metadata * 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 for 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. ĭump_data_fields | dump_data_fields_utf8 |įor Complete Help: pdftk -help DESCRIPTION

Pdftk - A handy tool for manipulating PDF
