Difference between revisions of "Pdftk"

From Notes_Wiki
m
m
Line 28: Line 28:
pdftk <input_pdf> input_pw PROMPT output <output_pdf>
pdftk <input_pdf> input_pw PROMPT output <output_pdf>
</pre>
</pre>
'''pdftk is not available in CentOS 7.x onwards at time of writing.  Use [[CentOS 7.x pdfunit]] instead.'''
<yambe:breadcrumb>File-type or document related tools</yambe:breadcrumb>

Revision as of 07:05, 12 June 2017

<yambe:breadcrumb>File-type or document related tools</yambe:breadcrumb>

pdftk

pdftk is a useful pdf manipulation tool. It allows one to:

  • Merge PDF Documents
  • Split PDF Pages into a New Document
  • Decrypt Input as Necessary (Password Required)
  • Encrypt Output as Desired
  • Burst a PDF Document into Single Pages
  • Report on PDF Metrics, including Metadata and Bookmarks
  • Uncompress and Re-Compress Page Streams
  • Repair Corrupted PDF (Where Possible)


Encrypting pdf with password

To encrypt pdf with password using 'pdftk' use:

pdftk <source_pdf> output <destination_pdf> user_pw PROMPT


Removing password from pdf

To remove password from a password-protected pdf use:

pdftk <input_pdf> input_pw PROMPT output <output_pdf>


pdftk is not available in CentOS 7.x onwards at time of writing. Use CentOS 7.x pdfunit instead.



<yambe:breadcrumb>File-type or document related tools</yambe:breadcrumb>