HTML to PDF bugg?

Hi!

We are using the latest version of Aspose and are trying to convert a HTML page into a PDF.

The HTML page contains a "Table of Content".
The ToC is created using a table with three columns.
The middle column has 100% width and a dotted bottom border.
The first column has "white-space:nowrap" set, since we don't want the text to be wraped.

This all works fine when browsing the HTML but when it get converted to pdf, the first column of text gets wraped.

Is there a way around it ?

Here is my HTML file:











This is a long header that shouldnt be wraped since im using nowrap   XX
My description about the header

Hi Per,

Sorry for the inconvenience faced. While using the latest version of Aspose.Pdf for NET 8.4.0, I’ve managed to reproduce this issue on my side and logged the issue in our bug tracking system as PDFNEWNET-35777 for further investigation and resolution. I’ve also linked your request to this issue and you will be notified via this thread as soon as it is resolved.

Please feel free to contact us for any further assistance.
BR

Hi

Any news to when this bugg will be fixed?

Regards
Per

Hi Per,

Thanks for your patience.

The development team has been busy resolving other priority issues and I am afraid the issue reported earlier is not yet resolved. Nevertheless, I have requested the team to share the ETA regarding its resolution. As soon as we have some definite updates regarding its resolution, we would be more than happy to update you with the status of correction. Please be patient and spare us a little more time.

The issues you have found earlier (filed as PDFNEWNET-35777) have been fixed in Aspose.Pdf for .NET 9.6.0.

Hi
This issue has not been resolved.
I tried my code above and it still wraps the text in the first column.

Hi Per,

Thanks for your inquiry. Please note that we have fixed the issue in the new DOM approach of HTML to PDF conversion. Please check the following code snippet for the purpose. It will help you to accomplish the task.

HtmlLoadOptions options = new HtmlLoadOptions();

options.PageInfo.Width = 1000;

options.PageInfo.Height = 800;

Document doc = new Document("tabletest.html", options);

doc.Save("tabletest_DOM.pdf");

Please feel free to contact us for any further assistance.

Best Regards,