Is there a free way to compress a PDF?

10

4

I have several PDFs that are quite large (one is 80+ MB). Is there a free way to compress that PDF to a smaller size?

Mike Wills

Posted 2009-12-18T17:34:09.243

Reputation: 918

Question was closed 2014-12-30T14:48:33.020

Is there a way to do it from a command line in Linux? – jva – 2010-10-04T12:08:28.227

Answers

3

There is also Free PDF Compressor. It gives you the option of using the Flate or RunLength compression algorithms as well as different compression levels.

alt text

John T

Posted 2009-12-18T17:34:09.243

Reputation: 149 037

For a PDF from a scanned image, I only got 1.5% compression – tubbie – 2019-05-01T12:30:44.423

1it doesn't support PDF 1.6 or higher. – None – 2009-12-18T20:39:07.903

1Being made a year after the freeware version of PDF compress, I think it's safe to say it will support newer PDFs than the freeware PDF compress at least. I've had no problems with it. – John T – 2009-12-18T21:08:36.673

5

I guess, the most voluminous parts in your document are the images. How much you could shrink the size then, depends if and how the images are currently compressed.

You can use ghostscript to compress all (especially bitmap) images in your PDF. If you will tolerate a lossy compression, you can simply use the following command (AFAIK JPEG is the default compression):

ps2pdf input.pdf compressed.pdf

And yes, ps2pdf can (despite of its name) also read in PDF files. Of course, there are tons of options for ghostscript, so for details please refer to the documentation.

Here is a comparison between different methods for an example document. (The result will vary very much depending on the contents of the input document, so always recheck the different methods for your situation.)

input.pdf             24 707 180 bytes
output_flate.pdf      23 293 759 bytes   # lossless via Free PDF Compressor 1.12
output_runlength.pdf  23 293 759 bytes   # lossless via Free PDF Compressor 1.12
output_jpeg.pdf       12 503 901 bytes   # lossy via ghostscript

You see, the lossless compression does not gain much im my case, as all images are already flate compressed in input.pdf.

mpy

Posted 2009-12-18T17:34:09.243

Reputation: 20 866

4

Have you tried compressing your file with the "smallpdf" online pdf compressor? My record is to get 92% compression. :)

Matt86

Posted 2009-12-18T17:34:09.243

Reputation: 41

Really great tool. Should be getting more traffic. – Alex P. Miller – 2014-12-02T03:02:57.570

Great. 1. I can download to SmallPDF service my 354.59 Mb PDF document. / 2. 354.59 → 48.38. / 3. Uncompressedcompressed. No difference. / 4. I can do it free. / 5. And quick. Thanks.

– Саша Черных – 2018-12-06T10:17:07.307

1

PDF's can get compressed. Specially if they have a lot of images.

I usually compress my PDFs with this online tool. Its very simple. But with a 80mb file you might not want to upload it and use a local tool.

Enard Gnark

Posted 2009-12-18T17:34:09.243

Reputation: 11

1

Reduce the actual size of PDF files by compressing text and graphics with PDF Compress.

alt text

Version 1 is freeware, Version 2 is shareware.

Molly7244

Posted 2009-12-18T17:34:09.243

Reputation:

0

Yes, you can try PrimoPDF, many people use it, it's really good.

Check it out on www.primopdf.com

You have to print a document (to a "Primo PDF" printer) in order to see the results in Pdf!

Junior M

Posted 2009-12-18T17:34:09.243

Reputation: 1 337