Pdf | |
The PdfFooter type exposes the following members.
| Name | Description | |
|---|---|---|
| DisplayOnEvenPages | Controls the visibility of the footer on the even numbered pages of the generated pdf document. | |
| DisplayOnFirstPage | Controls the visibility of the footer on the first page of the generated pdf document. | |
| DisplayOnOddPages | Controls the visibility of the footer on the odd numbered pages of the generated pdf document. | |
| FirstPageNumber | Controls the page number for the first page being rendered. | |
| Height | The height of the pdf document footer. | |
| TotalPagesOffset | Controls the total number of pages offset in the generated pdf document. |
HtmlToPdf converter = new HtmlToPdf(); converter.Options.DisplayFooter = true; converter.Footer.Height = 40; PdfFont font = PdfFont.CreateStandardFont(PdfStandardFont.Helvetica, 10); PdfTextSection text = new PdfTextSection(0, 10, "Page {page_number} of {total_pages}", font); converter.Footer.Add(text); PdfDocument doc = converter.ConvertUrl("https://www.google.com"); doc.Save("out.pdf"); doc.Close();