Created
October 24, 2013 19:12
-
-
Save knugie/7143248 to your computer and use it in GitHub Desktop.
reduce pdf size
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#reduce PDF size | |
#-dPDFSETTINGS | |
# /screen | |
# /ebook | |
# /printer | |
# /prepress | |
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -sOutputFile=out.pdf in.pdf |
from http://pandemoniumillusion.wordpress.com/2008/05/07/compress-a-pdf-with-pdftk/
pdf2ps large.pdf very_large.ps
ps2pdf very_large.ps small.pdf
Bug "Unrecoverable error: stackunderflow in .setdistillerparams"
[GPL Ghostscript 9.10 (2013-08-30)]
use the following option:
-dUseCIEColor
This fixed the issue for me using shrinkpdf. Thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
!/bin/sh
from http://www.alfredklomp.com/programming/shrinkpdf/
gs -q -dNOPAUSE -dBATCH -dSAFER
-sDEVICE=pdfwrite
-dCompatibilityLevel=1.3
-dPDFSETTINGS=/screen
-dEmbedAllFonts=true
-dSubsetFonts=true
-dColorImageDownsampleType=/Bicubic
-dColorImageResolution=72
-dGrayImageDownsampleType=/Bicubic
-dGrayImageResolution=72
-dMonoImageDownsampleType=/Bicubic
-dMonoImageResolution=72
-sOutputFile=out.pdf
$1