We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Handle WrapType TIGHT parameter during DOCX to PDF Conversion using Java

Hello

I use Aspose.Words for Java 20.2 to convert docx to pdf this way:

Document document = new Document(inputFile);
document.setWarningCallback(documentWarningCallback);
document.save(outputFile);

I get the message “There are known issues with “Tight” text wrapping type. Wrapped content could be rendered differently. At DrawingML Object 594,7x804,15, Paragraph 1, Section 1”.
All of the text in the document is missing in the output.pdf.

tightWrapping.zip (168.5 KB)

Changing the wrap type programmatically from WrapType.TIGHT to WrapType.NONE (as stated in an example here Docx file conversion to PDF splits first page into 2 pages) would solve the problem in this special case, but I fear it could cause side effects in some other document conversions.

Do you have any ideas for this conversion problem or do you know if it is planned to resolve the known issues with tight text wrapping?

Kind regards

@dvtdaten,

We tested the scenario and have managed to reproduce the same problem on our end. For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-20091. We will further look into the details of this problem and will keep you updated on the status of correction. We apologize for your inconvenience.