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  

Comments

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 http://www.html-to-pdf.net/ may be it can solve your problem.

You need to login to post a comment.