Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Header with HTML is in reverse on PDF file

$
0
0
Hi, I am trying to build a pdf file and header build with Html is printing in reverse..please advise.

      string strHtml = "<table><tr><td>Test Header</td></tr></table>";

            Aspose.Pdf.Document doc = new Aspose.Pdf.Document();
            Aspose.Pdf.Page page = doc.Pages.Add();
            Aspose.Pdf.HtmlFragment headerHtml = new Aspose.Pdf.HtmlFragment(strHtml);
            Aspose.Pdf.HeaderFooter hf = new HeaderFooter();
            hf.Paragraphs.Add(headerHtml);
            page.Header = hf;
            doc.Save(@"C:\Projects\DataImpactInvoiceReport\test.pdf");

Viewing all articles
Browse latest Browse all 3131

Trending Articles