[office] dvitopdf.sh

At our office we tend to document almost
everything with LaTeX. This script
is one which has saved us a lot of time already with creating high quality PDF
documents.

Basically, it’s just an alias to simplify creating prepress quality A4 PDFs of
a DVI file, typically created with LaTeX and hyperref with the dvipdfm driver.


# creates a pdf from a given dvi file on an a4 page
# all parameters are passed to dvipdft
/usr/bin/dvipdft -p a4 -D "/bin/cat %i | /usr/bin/gs -q -dCompatibilityLevel=1.2 -dUseFlateCompression=true -dSAFER -sDEVICE=pdfwrite -sOutputFile=%o -sPAPERSIZE=a4 -dPDFSETTINGS=/prepress - -c quit" $@

It’s the “prepress” setting at the end which guarantees the quality of the
output.

Add a Comment   Trackback  

Add a Comment