Difference between revisions of "Pdftk"

From Notes_Wiki
m
m
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<yambe:breadcrumb>File-type or document related tools</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[File-type or document related tools]] > [[Pdftk]]
=pdftk=


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




'''pdftk is not available in CentOS 7.x onwards at time of writing.  Use [[CentOS 7.x pdfunite]] instead.'''
If pdftk is not available in then use [[CentOS 7.x pdfunite]] instead.




==Compressing pdf==
If we build a pdf using a number of scanned images / mobile photos then by default such pdf is very big in size (Typically sum of all image sizes).  To compress such pdf use online tool at: https://smallpdf.com/compress-pdf




<yambe:breadcrumb>File-type or document related tools</yambe:breadcrumb>
==Comparing pdf==
We can compare to pdf files (Simliar to diff or kompare) via: https://tools.pdf24.org/en/compare-pdf
 
Using this we can compare two pdf files online.
 
 
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[File-type or document related tools]] > [[Pdftk]]

Latest revision as of 08:05, 4 August 2024

Home > CentOS > CentOS 6.x > File-type or document related tools > 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>


If pdftk is not available in then use CentOS 7.x pdfunite instead.


Compressing pdf

If we build a pdf using a number of scanned images / mobile photos then by default such pdf is very big in size (Typically sum of all image sizes). To compress such pdf use online tool at: https://smallpdf.com/compress-pdf


Comparing pdf

We can compare to pdf files (Simliar to diff or kompare) via: https://tools.pdf24.org/en/compare-pdf

Using this we can compare two pdf files online.


Home > CentOS > CentOS 6.x > File-type or document related tools > Pdftk