converting unprintable pdf / imagemagick

converting unprintable pdf / imagemagick

  • Written by
    Walter Doekes
  • Published on

Okay, so we all know that printers are sent from hell, but we still need to use them from time to time.

Today, we were trying to print a PDF document with bar codes on it. Amazingly enough, the text on the PDF looked fine, but the bar codes (images) appeared as if they were wrapped at the wrong place.

Luckily, convert(1) from ImageMagick came to the rescue:

$ convert -density 300 -define pdf:fit-page=A4 input.pdf output.pdf

a photo of the printer output of input.pdf andoutput.pdf vimdiff output of pdfinfo on input.pdf andoutput.pdf

Although I still have no idea what the cause was, the result is something usable. Thanks, ImageMagick!


Back to overview Newer post: monitoring / process open files / limit Older post: proxmox / resource usage