V
V
Vit2014-05-27 21:12:20
PHP
Vit, 2014-05-27 21:12:20

How to compress a pdf file?

I have a pdf file that has a lot of very high quality bitmaps. Because of this, the pdf file weighs quite a lot. How and how can it be "squeezed" so that the quality of the pictures in it becomes lower and the size decreases due to this? Interested in both ready-made software, and either for Java or PHP.
Preferably free. Thanks in advance.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vit, 2014-06-04
@fornit1917

Thanks to all. So far I've settled on ghostscript:
gs -o new.pdf -sDEVICE=pdfwrite -dPDFSETTINGS=/screen old.pdf

A
Alexey Kuleshov, 2014-05-27
@GingerbreadMSK

doPDF - adds a virtual printer to the system (Windows 8, 7, Vista, XP, 2008/2003/2000 Server, 32/64-bit). When sending to print with a doPDF printer, you can select the image quality and desired file size. Open in Adobe PDF - print in doPDF!

K
klirichek, 2014-05-28
@klirichek

It all depends on the nature of the images.
If these are scans of printed text, they can be recognized or put into djvu.
If it's a dashed black-and-white graphic (without halftones), you can compress it into CCIT-4 (fax compression) and put it back.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question