Images were misplaced when converted from word document even after optimization

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

@santhosh.utla Could you please attach your input and output document s here for testing? We will check the issue and provide you more information.

Regarding the PDF optimization, the question is related to Aspose.PDF, so you should ask this question in Aspose.PDF support forum.

Hi Team

It seems like word issue, below is the ticket created in pdf forum. Kindly look into the issue

Details are as mentioned below

https://forum.aspose.com/t/images-were-misplaced-when-converted-from-word-document/262739

@santhosh.utla
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-25256

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

The issues you have found earlier (filed as WORDSNET-25256) have been fixed in this Aspose.Words for Java 23.5 update.