Welcome Guest Search | Active Topics | Sign In | Register

HTML to PDF - page numbers Options
quirtep
Posted: Tuesday, August 23, 2011 10:38:32 AM
Rank: Advanced Member
Groups: Member

Joined: 9/6/2007
Posts: 133
I am familiar with the style property page-break-inside: avoid; to ensure that page breaks occur at appropriate places within a document converted from HTML to PDF. Is there also a way to automatically add page numbers in a header or footer? Thank you.
quirtep
Posted: Tuesday, August 23, 2011 10:47:15 AM
Rank: Advanced Member
Groups: Member

Joined: 9/6/2007
Posts: 133
Disregard - I found it: EO.Pdf.HtmlToPdf.Options.FooterHtmlFormat = "Page {page_number}";
quirtep
Posted: Tuesday, August 23, 2011 10:56:35 AM
Rank: Advanced Member
Groups: Member

Joined: 9/6/2007
Posts: 133
Sorry - I guess I need I need help after all. Is there a way to show the total number of pages (page x of x)?
eo_support
Posted: Tuesday, August 23, 2011 11:45:32 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You would use total_pages. See here for more details:

http://doc.essentialobjects.com/library/4/eo.pdf.htmltopdfoptions.headerhtmlformat.aspx

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.