Hi,
Thanks for your inquiry.
We appreciate your feedback regarding our free PDF product and we're sorry to hear that you are experiencing issues when compressing the document.
We recommend that you try our latest commercial version of our
Spire.PDF_9.5.6, which includes improvements to image compression and processing. We have also introduced a new compression API that allows you to set the compression options for images or not. Please refer to the following code.
Here is an example code snippet that demonstrates how to use the new compression API to compress a document while disabling image compression:
- Code: Select all
PdfCompressor compressor = new PdfCompressor("test.pdf");
// Set don't compress images
compressor.getOptions().getImageCompressionOptions().setCompressImage(false);
compressor.compressToFile("result.pdf");
We hope that this solution will address any concerns you may have had. Please let us know if you have any further questions or require additional assistance.
Best regards,
Triste
E-iceblue support team