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

Free Support Forum - aspose.com

Word wrap not happening when used aspose.pdf 17.8 and 18.5 version

Hi ,

i have a html file with word wrap attribute mentioned for a TD element. When converted to pdf the word wrap is not properly done.

i tried with both aspose.pdf 17.8 and 18.5 version but issue remain same.

Attached is the zip file having my sampe html file and generated pdf files using aspose17.8 and 18.5 versions.

Regards,
Stephen WordWrap.zip (68.7 KB)

@stephent

Thank you for contacting support.

We have been able to reproduce the issue with Aspose.PDF for Java 18.9.1 using below code snippet in our environment. A ticket with ID PDFJAVA-38093 has been logged in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.

String basePath = "D:\\WordWrap\\";
HtmlLoadOptions htmloptions = new HtmlLoadOptions(basePath);
// Load HTML file
Document doc = new Document(basePath + "test.htm", htmloptions);
// Save HTML file
doc.save( basePath + "test_18.9.pdf");

We are sorry for the inconvenience.

Hi Farhana,

Appreciate the fast response.

Do we have any alternate approach to resolve the issue ?
We need a fix for the issue and address with our business partner ASAP.

Regards,
Stephen Theetla

@stephent

We are afraid that any workaround approach may not be possible for this issue, at the moment. We will be able to share further updates with you once the ticket will be investigated. We appreciate your patience and comprehension in this regard.