Posted By

deepsoul on 07/26/09


pdf images postscript fonts ps2pdf

Versions (?)

Prevent image degradation when generating PDF

 / Published in: LaTeX


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.pdf

Report this snippet  


RSS Icon Subscribe to comments
Posted By: shalini07 on May 5, 2015

There are virtually bazillion converters out there in the internet domain that makes it quite difficult to choose the one that suits your purpose in just the right manner. Try using may be it can solve your problem.

You need to login to post a comment.