Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

I need to compress a scanned PDF file from 1.5 MB to under 600 KB. I've tried a number of Ghostscript solutions given on other threads but they seem to compress it all the way down to just 2.2 KB and all the content is lost. Can someone provide a solution?

share|improve this question

marked as duplicate by Luis Alvarado Apr 11 '13 at 22:57

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

add comment

2 Answers 2

You may experiment with the convert input.pdf -resample 85% output.pdf command example.

Reference: http://www.imagemagick.org/script/convert.php#usage

Depending on the quality of the original, the results may not be very good.

share|improve this answer
add comment

It would be helpful to see what options you tried with Ghostscript because normally that should work better than ImageMagick.

You can also try pdfjam. To install

sudo apt-get install pdfjam

Then try variants of these commands

pdfjam --scale 0.5 your.pdf

or try the --papersize flag. Run pdfjam --help for a full list of options.

share|improve this answer
    
Thank you for your answer, but the scale option does not reduce the PDF file size. It only adjusts the page margins. In fact, I wasn't able to find any pdfjam option that would actually reduce DPI/image quality and this file size. –  Glutanimate Apr 11 '13 at 22:21
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.