NewsWorksSoftwareTextBioContact
background image

Converting PDF to JPG using GhostScript

July 1, 2016

Warning: This will be the most boring blog post ever, but I just need to communicate this to future self.

At home I have problems printing PDFs from SendRegning, the online invoicing service I’m using. I don’t know if the problem is with the printer or if the PDFs are ill-formatted. Anyway, after having battled the files for close to two hours, I’ve found a way of using GhostScript to convert them from PDF to JPG. The JPGs print just fine.

In Terminal, cd into the folder containing the file to convert and run:

gs -dNOPAUSE -sDEVICE=jpeg -r144 -sOutputFile=invoice.jpg invloice.pdf

Yuck!