This is an archived forum post. The information may be outdated. Contact us if you have any
Compression of large PDF files
wrote on 2017-06-07:
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
wrote on 2017-06-08:
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.