Hack Of The Day: PDF Versions And Printers
The Problem:
Your PDF file looks awsome on screen, but once you send it to your printer:
Your PDF file looks awsome on screen, but once you send it to your printer:
- some UTF-8 characters are wrong,
- some vectorial drawings with transparency get wrong colors, or
- other figures get out of their bounding-boxes.
The Solution:
Just use Ghostscript to convert to PDF 1.2:
Just use Ghostscript to convert to PDF 1.2:
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.2 \ -dNOPAUSE -dQUIET -dBATCH -sOutputFile=FILE_OUT.pdf FILE_IN.pdfOr, if you think you're going to need it often:
pdfto12 () { if [ $# -ne 2 ]; then echo "usage: pdfto12 <pdf-in> <pdf-out>" return fi gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.2 \ -dNOPAUSE -dQUIET -dBATCH -sOutputFile=$2 $1 }