Return to Snippet

Revision: 16095
at August 16, 2009 14:06 by deepsoul


Updated Code
ps2pdf -sPAPERSIZE=a4  -dCompatibilityLevel=1.3  \
  -dEmbedAllFonts=true  -dSubsetFonts=true  -dMaxSubsetPct=100  \
  -dAutoFilterColorImages=false  -dColorImageFilter=/FlateEncode  \
  -dAutoFilterGrayImages=false  -dGrayImageFilter=/FlateEncode  \
  -dAutoFilterMonoImages=false  -dMonoImageFilter=/CCITTFaxEncode  \
  document.ps  document.pdf

Revision: 16094
at July 26, 2009 17:03 by deepsoul


Initial Code
ps2pdf -sPAPERSIZE=a4  -dCompatibilityLevel=1.3  \
  -dEmbedAllFonts=true  -dSubsetFonts=true  -dMaxSubsetPct=100  \
  -dAutoFilterColorImages=false  -dAutoFilterGrayImages=false  \
  -dColorImageFilter=/FlateEncode  -dGrayImageFilter=/FlateEncode \
  -dMonoImageFilter=/FlateEncode   document.ps  document.pdf

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

Initial Description
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.

Initial Title
Prevent image degradation when generating PDF

Initial Tags
images

Initial Language
LaTeX