This question already has an answer here:

I've got a PDF of a scanned document that's around 20MB and I need to drastically reduce the filesize to be able to email it. I've tried

gs -sDevice=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf

but output.pdf isn't created. Instead, I get an X Viewer for Ghostscript briefly. Where am I going wrong?

merged by Seth Mar 12 '18 at 13:49

This question was merged with How can I reduce the file size of a scanned PDF file? because it is an exact duplicate of that question.

  • 1
    How can this be a duplicate of that other question when it predates it by two years? – Rob Cowell Aug 1 '14 at 8:14

Browse other questions tagged or ask your own question.