Welcome Guest Search | Active Topics | Sign In | Register

Print page numbers Options
MrpDude
Posted: Wednesday, January 17, 2024 4:46:17 PM
Rank: Member
Groups: Member

Joined: 9/26/2023
Posts: 10
When converting htmltopdf, how do I display the page numbers?
eo_support
Posted: Thursday, January 18, 2024 9:59:17 AM
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.html

You can also use other methods mentioned in that page, such as using AfterRenderPage callback, or add page number after the conversion.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.