Satya's blog - Decent PDF image compression

Apr 16 2007 10:11 Decent PDF image compression
I recently started doing postscript at work. The file I was working on this weekend contains a logo image. This code will cause ps2pdf to use FlateEncode instead of lossy DCT. Flate may be better in some circumstances (like for logos):
systemdict /setdistillerparams known {
    << /AutoFilterColorImages false /ColorImageFilter /FlateEncode >> setdistillerparams
} if

Tag: geeky howto