This is an archived forum post. The information may be outdated. Contact us if you have any questions.

Compression of large PDF files

lz_status4sure wrote on 2017-06-07:
Dear developer,

I am currently generating PDFs for my webapplication. However, the PDF files differ in file sizes ranging from 0.5MB to 6MB. I assume this depends heavily on the number of images in it.
Is there a way to limit the file size of the PDFs in order to keep my customers happy with a small file that could easily be attached to an email, for example.

Thanks in advance,
Jeroen
support wrote on 2017-06-08:
Hello Jeroen,

you can suppress images at all by calling API method enableImages(False)
or
use some PDF distiller (e.g. ghostscript, Adobe) for compressing images on your local server.