Posted By

deepsoul on 07/26/09


Tagged

pdf images postscript fonts ps2pdf


Versions (?)

Prevent image degradation when generating PDF


 / Published in: LaTeX
 

URL: http://www.volkerschatz.com/tex/hiqpdf.html

By default ps2pdf re-encodes images, which usually reduces their quality. The commandline below prevents that. It also embeds fonts into the PDF, making it more portable. Substitute -sPAPERSIZE=letter if you are American.

  1. ps2pdf -sPAPERSIZE=a4 -dCompatibilityLevel=1.3 \
  2. -dEmbedAllFonts=true -dSubsetFonts=true -dMaxSubsetPct=100 \
  3. -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode \
  4. -dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode \
  5. -dAutoFilterMonoImages=false -dMonoImageFilter=/CCITTFaxEncode \
  6. document.ps document.pdf

Report this snippet  

You need to login to post a comment.