Hi,
I am using the following sample code to achieve the compression of images in the PDF.
String dir = "C:\\Users\\Administrator\\Downloads\\Compression\\";
Document pdfDocument = new Document(dir + "test.docx");
PdfSaveOptions options = new PdfSaveOptions();
options.setImageCompression(PdfImageCompression.AUTO);
pdfDocument.save(dir+"output_PDF_compression_Auto.pdf");
But the output has the same size for both AUTO and JPEG options.
Can you please explain this.
Attaching the document, aspose_renditions, office_SaveAs rendition,images.
How to verify the compression?
This is in addition to this issue https://forum.aspose.com/t/dts-5714-queries-regarding-aspose-words/201405
Regards,
Ankur Vashishtha