pdftl - PDF tackle 0.19.0.post13
A wannabe CLI compatible clone/extension of pdftk
Usage
pdftl <input>... <operation> [<option...>]
pdftl <input>... <operation> [<option...>] --- [<input>...] <operation>... [<option...>] ...
pdftl help [<operation> | <option>]
pdftl help [help | sign | filter | input | --- | pages | output | examples | completion | all]
pdftl --completion (bash | zsh | powershell)
pdftl --version
Operations |
|
|---|---|
|
Add top-level bookmarks |
|
Add user-specified text strings to PDF pages |
|
Attach files to the output PDF |
|
Use a 1-page PDF as the background |
|
Impose pages into printable booklet signatures |
|
Split a single PDF into multiple files |
|
Concatenate pages from input PDFs into a new PDF |
|
Chop pages into multiple smaller pieces |
|
Clip page content to a rectangle |
|
Crop pages to a rectangle |
|
Delete pages from an input PDF |
|
Delete annotation info |
|
Delete file attachments based on criteria |
|
Delete blank or near-blank pages |
|
Delete bookmarks |
|
Delete images |
|
Dump annotation info |
|
Extract PDF bookmarks into YAML or JSON |
|
Report color spaces used |
|
Metadata, page and bookmark info (XML-escaped or JSON) |
|
Dump annotation info in pdftk style |
|
Print PDF form field data with XML-style escaping |
|
Print PDF form field data in UTF-8 |
|
Metadata, page and bookmark info (in UTF-8) |
|
Print named destination data to the console |
|
Print PDF encryption details and user permissions |
|
List file attachments |
|
Extract PDF embedded image metadata to JSON |
|
Dump layer info (JSON) |
|
List and validate digital signatures |
|
Print PDF text data to the console or a file |
|
Fill a PDF form |
|
Do nothing (the default if |
|
Generate an FDF file containing PDF form data |
|
Highlight text matching a regex pattern |
|
Inject code at start or end of page content streams |
|
Insert blank pages |
|
Modify properties of existing annotations |
|
Modify state, merge, or strip specific layers |
|
Impose pages onto a grid layout |
|
Move pages to a new location |
|
Use multiple pages as backgrounds |
|
Stamp multiple pages onto an input PDF |
|
Mutate page content streams using a user-supplied Python script |
|
Reformat page content streams |
|
Optimize images |
|
Shift, scale, and spin page content |
|
Render PDF pages as images or a single rasterized PDF |
|
Regex replacement on page content streams |
|
Rotate pages in a PDF |
|
Set document properties, viewer preferences, and page labels |
|
Interleave pages from multiple input PDFs |
|
Stamp a 1-page PDF onto each page |
|
Unpack file attachments |
|
Remove ‘pause’ frames from a slide deck |
|
Replace PDF bookmarks from a YAML or JSON file |
|
Update PDF metadata from |
|
Update PDF metadata from |
|
Rescale entire pages |
Options |
|
|---|---|
|
Specify permissions for encrypted files |
|
Compress output file streams (default) |
|
Discard document-level info metadata |
|
Discard form XFA data if present |
|
Discard document-level XMP metadata |
|
Use 128 bit encryption (obsolete and insecure) |
|
Use 40 bit encryption (obsolete, highly insecure) |
|
Use 128 bit AES encryption (default) |
|
Use 256 bit AES encryption |
|
Skip stream recompression for faster saving |
|
Flatten annotations and form fields |
|
Copy final input PDF’s ID metadata to output |
|
Copy first input PDF’s ID metadata to output |
|
Linearize output file(s) |
|
Set a form rendering flag in the output PDF |
|
Leave metadata unencrypted |
|
The output file path, or a template for |
|
Set owner password and encrypt output |
|
Replace the font used for all form fields with a TTF file |
|
Path to certificate PEM |
|
Signature field name (default: |
|
Path to private key PEM |
|
Environment variable with |
|
Prompt for |
|
Disable compression of output file streams |
|
Set user password and encrypt output |
|
Turn on verbose output |