Ubuntu – Convert PDF to images to PDF

command lineconvertimagemagickpdfscripts

I have a PDF that I want to show to someone without giving them the ability to copy it. One possible way would be to convert pages to images, then these back into a PDF. How can I use convert or pdftk or otherwise script? Not GUI.

Best Answer

Imagemagick rasterizes everything. You could simply do:

convert -density 200 input.pdf output.pdf

Of course the recipient might decide to run an OCR program on your file. The density parameter sets the resolution expressed as PPI.