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

Free Support Forum - aspose.com

Import HTML with Footer

Hi
Is there a way to create a pdf via importing an HTML document so that the in the HTML appear as a footers on the pdf. All the examples I have seen on so far have been programmatically setting the footer outside of the html.

Thanks
Richard

Hi Richard,

Thanks for your inquiry. Please note that Aspose.Words mimics the same behavior as MS Word does. If you load the html with footer tag in MS Word, you will get the same output. In your case, I suggest you please insert the footer tag in the footer of document using following code example. Hope this helps you.

Document doc = new Document(MyDir + "in.docx");
DocumentBuilder builder = new DocumentBuilder(doc);
builder.MoveToHeaderFooter(HeaderFooterType.FooterPrimary);
builder.InsertHtml(File.ReadAllText(MyDir + "footer.html"));
doc.Save(MyDir + "Out.pdf", SaveFormat.Pdf);

Moreover, I have logged a feature request to import footer tag in the Footer of a section as WORDSNET-10970 in our issue tracking system. You will be notified via
this forum thread once this feature is available.

We apologize for your inconvenience.