Thursday, August 19, 2010

Convert ps to pdf without compressing the images

This script converts a ps file to pdf

#/bin/sh
ps2pdf -sPAPERSIZE=a4 \
-dMaxSubsetPct=100 -dCompatibilityLevel=1.3 \
-dSubsetFonts=true -dEmbedAllFonts=true \
-dAutoFilterColorImages=false \
-dAutoFilterGrayImages=false \
-dColorImageFilter=/FlateEncode \
-dGrayImageFilter=/FlateEncode \
-dMonoImageFilter=/FlateEncode \
"$1" "$1.pdf"

No comments:

Post a Comment