Hi Team,
We are converting a Word document which consists of Images to PDF using aspose API. But in the generated PDF, images were misplaced like coming on top of text content, which is not readable.
I have added optimization but that is causing the generated file to get damaged and unable to open it when using optimization.
Below are the optimization options used, once PDF generated unable to open it.
OptimizationOptions optimizationOptions = new OptimizationOptions();
optimizationOptions.setRemoveUnusedObjects(true);
optimizationOptions.setRemoveUnusedStreams(true);
optimizationOptions.setAllowReusePageContent(true);
optimizationOptions.setLinkDuplcateStreams(true);
optimizationOptions.setUnembedFonts(true);
optimizationOptions.getImageCompressionOptions().setCompressImages(true);
optimizationOptions.getImageCompressionOptions().setImageQuality(50);
optimizationOptions.getImageCompressionOptions().setResizeImages(true);
docPdf.optimizeResources(optimizationOptions);*/
docPdf.optimize();
This issue is very critical as it is halting us from Go Live.
Do suggest if I am missing anything in optimization.
Thanks,
Santhosh Utla