Forum


Replies: 1   Views: 240
How to compress pdfs and reduce file size ?
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by Coco-Mrtn  · 23-05-2024 - 07:07

Hello,

I use MultiMerge() to merge several DOCX files, then I transform them into PDFs with TransformDocAdvMSWord().

Is there a possibility to compress the final PDF or choose the quality?

For example, with a 3-page document, the DOCX from the MultiMerge weighs 28KB, and the PDF is 516KB, which is too large.

I tested compressing the final PDF with an online compressor, and the result was 55KB. However, I would love to compress it directly in my PHP if possible.

Thanks for your help.