Work with PDF files from a command line

If you want to edit a PDF, such as a find and replace, you can uncompress it with pdftk.

Install pdftk

$ sudo apt-get install pdftk

Uncompress the PDF.

$ pdftk compressed.pdf output uncompressed.pdf uncompress

Work on the PDF with whatever text editor you like.

Then just recompress it with,

$ pdftk uncompressed.pdf output newcompressed.pdf compress

Page Comments (Click to edit)






[Click to add or edit comments])

Please prepend comments below including a date

Design by N.Design Studio, adapted by solidGone.org (version 1.0.0)
Have a nice day.