I also noticed the PDF files that GemBox generates are quite large, when compared to other PDF libraries. Is there some way to reduce file size? Thanks
Examples:
Usually 2-4 times larger than what Aspose produces
I also noticed the PDF files that GemBox generates are quite large, when compared to other PDF libraries. Is there some way to reduce file size? Thanks
Examples:
Usually 2-4 times larger than what Aspose produces
Hi James,
Try using this:
var document = DocumentModel.Load("input.docx");
var pdfSaveOptions = new PdfSaveOptions();
pdfSaveOptions.ImageDpi = 220;
document.Save("output.pdf", pdfSaveOptions);
Does this solve your issue?
Regards,
Mario
Hi James,
Please send us your DOCX files so we can reproduce the issue and investigate it.
Regards,
Mario
Example file and pdf outputs: https://drive.google.com/file/d/10SRpcjv66gTOlupkT32762TynjFWpQz5/view?usp=drive_link
Hi James,
Currently, GemBox.Document provides optimizations primarily for images embedded in PDF files. It doesn’t provide other aspects, such as content stream compression and removal of redundant operations.
But we have an internal support ticket for a PDF compression feature and I have added your report to it to increase its priority.
At this moment, I cannot tell you exactly when it will be implemented. Please note that we prioritize feature request implementations by the number of users requesting them and currently we are working on some other features that have greater priority (more user requests).
Regards,
Mario
No worries, thanks for explaining. This isn’t really a deal-breaking issue for us, my other thread with the formatting issues are much higher. ![]()