HTML (with table-cell style) to PDF conversion issue

Hi,

My company recently bought Aspose.Total for .NET version 18.1 to replace our old 9.6 libraries due to a known bug of unable to convert HTML containing a style of “table-cell” to PDF. However, Aspose.PDF 18.1 still failed to convert our HTML properly.

I have attached both of our source sample HTML file and the converted PDF file for your reference. It is an urgent issue, please help out!

Thanks,

  • Steven

table-cell-issue.zip (125.9 KB)

@stevenxchang

Thank you for contacting support.

We have worked with the data shared by you and have been able to notice the problem of truncated text in generated PDF file. However, setting IsLandscape property to true, as in the code below, fixes the problem of truncated text. I have attached the PDF file generated with Aspose.PDF for .NET 18.3, for your kind reference Converted_18.3.pdf. But, the formatting of text differs in generated PDF file. A ticket with ID PDFNET-44359 has been logged in our issue management system for further investigation and resolution. The issue ID has been linked with this thread so that you will receive notification as soon as the issue is resolved.

//Pass path to your resource files CSS, images etc in the constructor of HtmlLoadOptions class
Aspose.Pdf.HtmlLoadOptions options = new Aspose.Pdf.HtmlLoadOptions(@"D:\table-cell-issue\");
options.PageInfo.IsLandscape = true;

Furthermore, investigation and resolution of this issue can take several months owing to previously logged issues. In case this issue is a blocker, you may please consider subscribing for Paid Support. We offer Paid Support, where issues are used to be investigated with higher priority. Our customers, who have paid support subscription, report their issue there which are meant to be investigated urgently. For further information, please visit Paid Support FAQ.

We are sorry for the inconvenience.

Thanks for the reply!

We did try setting IsLandscape to true with Aspose.PDF 18.1 even if we don’t expect to do that in our existing logic. Though it was the same for us, such as the texts are cut and the format is off. From the PDF generated by you with 18.3, the results seem to say that Aspose PDF 18.1 and 18.3 have different behavior. Could you please clarify a bit more on that?

@stevenxchang

We have compared the PDF files generated by Aspose.PDF for .NET 18.1 and 18.3. Both files appear same, only the formatting is disturbed for which the issue has been logged. Please share the code snippet and your environment details including OS details, .NET framework etc so that we may investigate further to help you out.

The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan