Rank: Member Groups: Member
Joined: 9/26/2023 Posts: 10
|
When converting htmltopdf, how do I display the page numbers?
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi, The easiest way is to use HtmlToPdfOptions.HeaderHtmlFormat/FooterHtmlFormat. See this link for sample code: https://www.essentialobjects.com/doc/pdf/htmltopdf/header.htmlYou can also use other methods mentioned in that page, such as using AfterRenderPage callback, or add page number after the conversion. Thanks!
|