Thanks.
While the investigation is going on with my previous issues, I would appreciate if you could help me with the following.
1. Unable to get header and footer displayed
2. Some of the styles like font-style.
tags are not rendered properly.
I have tried it with simple htmlSting. Please find the sample that I was testing
Aspose.Pdf.License pdfLicense = new Aspose.Pdf.License();
pdfLicense.SetLicense(@“C:\Aspose\Aspose.Total.lic”);
Aspose.Pdf.Generator.Pdf pdf = new Aspose.Pdf.Generator.Pdf();
Aspose.Pdf.Generator.Section section = pdf.Sections.Add();
section.PageInfo.PageHeight = Aspose.Pdf.Generator.PageSize.A4Height;
section.PageInfo.PageHeight = Aspose.Pdf.Generator.PageSize.A4Width;
string headStr = “
Test Aspose
The newest iPads could make their debut later this month.
Apple is planning an October 22 press event to show off the latest additions to its iPad line, according to AllThingsD’s John Paczkowski, confirming an earlier report in Current Editorials
”;
Aspose.Pdf.Generator.Text text2 = new Aspose.Pdf.Generator.Text(section, headStr);
text2.IsHtmlTagSupported = true;
section.Paragraphs.Add(text2);
// Create Header Section of the document
Aspose.Pdf.Generator.HeaderFooter header = new Aspose.Pdf.Generator.HeaderFooter(section);
Aspose.Pdf.Generator.Text headerTxt = new Aspose.Pdf.Generator.Text(“Government of United States”);
header.Paragraphs.Add(headerTxt);
// Create Footer Section of the document
Aspose.Pdf.Generator.HeaderFooter footer = new Aspose.Pdf.Generator.HeaderFooter(section);
// Create a Footer Text object
Aspose.Pdf.Generator.Text footerTxt = new Aspose.Pdf.Generator.Text("Page: ($p of $P ) ");
footer.Paragraphs.Add(footerTxt);
pdf.Save(“c:/test/HTML2pdf.pdf”);