HTML to PDF - Text is not wrapping on css property word-wrap: break-word

Hi,

When trying to use Aspose.PDF we are encountering an issue where it looks like Aspose is not recognizing the css property word-wrap: break-word. When we open the HTML in Internet Explorer or Chrome, the text is properly wrapping. However, the text is not wrapping when we create a PDF from the HTML, and all the text is appearing on 1 line and in some cases going off the PDF. We have tried to put the breaks on the div and the span but neither seems to work.

We can resize the document after the transformation, but in some cases it leads to the text being reformatted and crunched together, so we would prefer the word-wrap to work. Can you let us know what css tag Aspose supports to accommodate really long text so we can get the text to wrap like it does in the browser?

HTMLToPDFConversion.zip (1.5 KB)

1 Like

@jmoroz22

Thank you for contacting support.

We have been able to reproduce the issue in our environment. A ticket with ID PDFJAVA-38559 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.

We are sorry for the inconvenience.

Has PDFJAVA-38559 been slated for a release?

@jamesdaily

We are afraid PDFJAVA-38559 is not resolved yet and the ETA is not available at the moment. We will let you know once any update will be available.