Title: Theory / Unimportant / CS / command line / media / PDFtk;
Tags: computer_to_instruction fromCommand fromCommandLine hasNotNewEffectReturnsMeaning some_instruction
On every note of this deck, unless a note says otherwise:
Chapter: https://www.pdflabs.com/docs/pdftk-man-page/#dest-input-files

Fla: --help
Effect: Show thes summary of options.
Prefix: pdftk
Flag abbreviation: -h
Chapter: https://www.pdflabs.com/docs/pdftk-man-page/#dest-input-files

Instruction: Assembly
Effect: Allows to assembly
Context: pdftk permission

Instruction: ScreenReaders
Effect: Allow to read by screen reader
Context: pdftk permission

Instruction: dont_ask do_ask
Effect: whether to ask for password/overwritting files if needed
Context: pdftk

Instruction: cat
Effect: Assemble every input documents in the order in which they were given
Context: pdftk

Instruction: handle
Effect: States to assembly handle after the previous parameter
Context: pdftk cat

Instruction: page
Effect: state to restrain handle to page number page only
Context: pdftk cat handle

Instruction: page-page2
Effect: State to restrain handle to pages between page and page2
Context: pdftk cat handle

Instruction: odd even
Effect: State to restrict this handle to only odd/even pages
Context: pdftk cat handle(,page(,-page2))

Instruction: north
Effect: Absolute rotation of 0°
Context: pdftk cat handle(parameters)

Instruction: south
Effect: Absolute rotation of 180°
Context: pdftk cat handle(parameters)

Instruction: east
Effect: Absolute rotation of 90°
Context: pdftk cat handle(parameters)

Instruction: west
Effect: Absolute rotation of 270°
Context: pdftk cat handle(parameters)

Instruction: left
Effect: Relative rotation of -90°
Context: pdftk cat handle(parameters)

Instruction: down
Effect: Relative rotation of -180°
Context: pdftk cat handle(parameters)

Instruction: right
Effect: Relative rotation of +90°
Context: pdftk cat handle(parameters)

Instruction: end
Effect: denote the last page
Context: pdftk cat handle

Instruction: rn
Effect: the nth to the last page
Context: pdftk cat handle

Instruction: shuffle
Effect: Similar to cat, but takes first page of every page ranges, then second pages of every page ranges which have a second page, etc...
Context: pdftk

Instruction: burst
Effect: Separate each page of the input into a new document
Context: pdftk

Instruction: rotate
Effect: output the entire input, with the indicated pages rotated, every other page in the input side
Context: pdftk
Assuming: A single input file

Instruction: generate_fdf
Effect: Reads a single input PDF file and generates an FDF file suitable for fill_form. It saves this FDF file using the output filename. If no output filename is give, it outputs the FDF to stdout. Does not create a new PDF.
Context: pdftk
Assuming: A single input file

Instruction: fill_form
Effect: Fills the input's form field with the data
Context: pdftk
Assuming: A single input file

Instruction: background b
Effect: Uses b as background in the output
Context: pdftk
Assuming: A single input file

Instruction: stamp b
Effect: Uses b as stamp over the output
Context: pdftk
Assuming: A single input file

Instruction: multibackground b
Effect: Add to page i's background the ith page of b or the last page of b if it has less than i pages
Context: pdftk
Assuming: A single input file

Instruction: multistamp b
Effect: Add to page i the ith page of b as a stamp or the last page of b if it has less than i pages
Context: pdftk
Assuming: A single input file

Instruction: dump_data
Effect: Reads a single input PDF file and reports its metadata, bookmarks (a/k/a outlines), page metrics (media, rotation and labels) and other data to the given output filename or (if no output is given) to stdout. Non-ASCII characters are encoded as XML numerical entities. Does not create a new PDF
Context: pdftk
Assuming: A single input file

Instruction: dump_data_utf8
Effect: Same as dump_data except that the output is encoded as UTF-8
Context: pdftk
Assuming: A single input file

Instruction: dump_data_fields_utf8
Effect: Same as dump_data_fields except that the output is encoded as UTF-8
Context: pdftk
Assuming: A single input file

Instruction: dump_data_fields
Effect: Reads a single input PDF file and reports form field statistics to the given output filename or (if no output is given) to stdout. Non-ASCII characters are encoded as XML numerical entities. Does not create a new PDF
Context: pdftk
Assuming: A single input file

Instruction: dump_data_anots
Effect: This operation currently reports only link annotations. Reads a single input PDF file and reports annotation information to the given output filename or (if no output is given) to stdout. Non-ASCII characters are encoded as XML numerical entities. Does not create a new PDF.
Context: pdftk
Assuming: A single input file

Instruction: update_info d
Effect: Changes the bookmarks and metadata in a single PDF’s Info dictionary to match the input data file. The input data file uses the same syntax as the output from dump_data. Non-ASCII characters should be encoded as XML numerical entities. This does not change the metadata stored in the PDF’s XMP stream, if it has one.
Context: pdftk
Assuming: A single input file

Instruction: update_info_utf8 d
Effect: Sames as update_info d except that the input is encoded as UTF-8
Context: pdftk
Assuming: A single input file

Instruction: attach_files a
Effect: Packs arbitrary files into a PDF using PDF’s file attachment features. More than one attachment can be listed after attach_files
Context: pdftk

Instruction: to_page p
Effect: Attache a to page p
Context: pdftk attach_files a

Instruction: unpack_files
Effect: Copies all of the attachments from the input PDF into the current folder or to an output directory given after output. For example:
Context: pdftk

Instruction: a=b
Effect: Introduce a as an handle for file b
Context: pdftk

Instruction: PROMPT
Effect: The user will be asked for this information
Context: pdftk

Instruction: input_pw a=b
Effect: State that the password of the pdf of handle a is b
Context: pdftk

Instruction: input_pw a
Effect: The password of the first pdf, without password yet, is a
Context: pdftk

Instruction: output a
Effect: State that the output file is named a. In case of burst, %02d is replaced by the number of the page
Context: pdftk
Assuming: a is not an input file

Instruction: encrypt_40bit encrypt_128bit
Effect: States which encryption to uses
Context: pdftk
Assuming: An output password is given

Instruction: allow a
Effect: Allows to do a even without password
Context: pdftk
Assuming: An output password is given

Instruction: printing
Effect: Top quality printing
Context: pdftk permission

Instruction: DegradedPrinting
Effect: Lower quality Printing
Context: pdftk permission

Instruction: Modify Contents
Effect: Allow to modify content and to assemply
Context: pdftk permission

Instruction: CopyContents
Effect: Allow to copy contents, and to be read by screen readers
Context: pdftk permission

Instruction: ModifyAnnotations
Effect: Allows to modify annotations and Fill in
Context: pdftk permission

Instruction: Fillln
Effect: Allow filling in
Context: pdftk permission

Instruction: AllFeatures
Effect: Allows the user to perform all of the permissions
Context: pdftk permission

Instruction: owner_pw a
Effect: State that the owner password of theoutput is a
Context: pdftk

Instruction: user_pw a
Effect: States that the user password of the output is a
Context: pdftk

Instruction: flatten
Effect: Use this option to merge an input PDF’s interactive form fields (and
their data) with the PDF’s pages. Only one input PDF can be given.
Sometimes used with the fill_form operation.
Context: pdftk

Instruction: need_appearances
Effect: Sets a flag that cues Reader/Acrobat to generate new field appearances
based on the form field values. Use this when filling a form with
non-ASCII text to ensure the best presentation in Adobe Reader or
Acrobat. It won't work when combined with the flatten option.
Context: pdftk

Instruction: uncompress
Effect: Remove PDF page stream compression by applying the uncompress filter
Context: pdftk

Instruction: compress
Effect: Use the compress filter to restore page stream compression.
Context: pdftk

Instruction: keep_first_id keep_final_id
Effect: When combining pages from multiple PDFs, use one of these options to
copy the document ID from either the first or final input document into
the new output PDF. Otherwise pdftk creates a new document ID for the output PDF. When no
operation is given, pdftk always uses the ID from the (single) input
PDF.
Context: pdftk

Instruction: drop_xfa
Effect: If your input PDF is a form created using Acrobat 7 or Adobe Designer, then it probably has XFA data. Filling such a form using pdftk yields a PDF with data that fails to display in Acrobat 7. The workaround solution is to remove the form’s XFA data, either before you fill the form using pdftk or at the time you fill the form. Using this option causes pdftk to omit the XFA data from the output PDF form.
This option is only needed when running pdftk on a single input PDF. When assembling a PDF from multiple inputs using pdftk, any XFA data in the input is automatically omitted.
Context: pdftk

Instruction: verbose
Effect: pdftk speak up
Context: pdftk