Prevent image degradation when generating PDF


/ Published in: LaTeX
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  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

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.