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

Free Support Forum - aspose.com

HTML table not saved in PDF file

We load a html with apose.word.Document and save the file as a PDF with apose.word.Document.Save.

If the html file contains a “dived” table like this it is not converted to the pdf file
<table border="1" cellspacing="0" bgcolor="#ffffff">
<font color="#ff0000" size="2" face="Arial">
<div align="left">5 x 978-3-423-36288-7 Marie-France Hirigoyen - Die Masken der Niedertracht
<font color="#ff0000">

This is the code and our test html is attached.

var options = new Aspose.Words.LoadOptions();
options.LoadFormat = Aspose.Words.LoadFormat.Html;
var document = new Aspose.Words.Document("test.html", options);

Aspose.Words.Saving.PdfSaveOptions saveOptions = new Aspose.Words.Saving.PdfSaveOptions();

document.Save("test.pdf", saveOptions);

Hi there,

Thanks for your inquiry. In your HTML document, the table has not TR and TD tags. Aspose.Words does not import this table into its DOM. However, we have logged this problem in our issue tracking system as WORDSNET-15248. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

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