I recently encountered a problem printing a PDF file where parts of the file weren’t being printed by my printer. I tried multiple times but got the same result – a part of my PDF wasn’t being printed (as if it was being censored). I thought that the problem was with my printer not reading my PDF correctly since it was being read correctly by my document/PDF viewer. Instead of finding out what was wrong with my printer or the PDF, I had this idea of just converting the PDF into an image and then printing the image afterwards.
convert -density 300 -trim <input-pdf>.pdf -quality 100 <output-image>.png
So I opened up my terminal, went to the directory holding my single page PDF file, ran the command, and got myself a PNG file that I then printed. Viola! The parts that weren’t being printed before when I was printing the PDF were now printed perfectly.
Except when explicitly stated otherwise, this work and its contents by Ben Hur S. Pintor is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Other works (software, source code, etc.) referenced in this website are under their own respective licenses.
This site is powered by Jekyll and hosted on Github (view source)