How to reduce pdf file size

I received a lot of PDF files, and some of them are quite large.

I have two alternatives

  • delete images and remove embedded fonts
  • image compression

Is it possible to delete all objects such as images / fonts in PDF (PHP lib or command line tool)?

Or, if I want to compress images to PDF, which PHP library do you recommend (or a command line tool)?

Debian / PHP

+3
source share
2 answers

pdftk is the way to IMO.

It can unpack and compress the text part of the PDF. Alternatively, you can use it in a script to extract all images, compress them using another tool, and then return them back to the original document.

, .

+1

, Acrobat, , ,

  • .

?

0

All Articles