Welcome Guest Search | Active Topics | Sign In | Register

To show page number and page count using HtmlToPdf Options
Louis
Posted: Friday, February 22, 2013 1:36:58 AM
Rank: Newbie
Groups: Member

Joined: 2/22/2013
Posts: 2
Hi,

I am using HtmlToPdf.ConvertUrl() to convert an html page into a pdf file.
The pdf file will have many pages.
And the customer asked for a feature to display page number in the footer areas.
I managed to display the page number in the footer panel like this:"Page X"
By setting the FooterHtmlFormat = "<div style='text-align:center'>Page {page_number} of </div>";
But what the customer want is something like this: "Page X of Y".
So my question is: Is it possible to display the total page count before rendering the html.
If so, how can I do that?

Thanks,
Louis
eo_support
Posted: Friday, February 22, 2013 9:25:08 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Louis
Posted: Friday, February 22, 2013 5:55:40 PM
Rank: Newbie
Groups: Member

Joined: 2/22/2013
Posts: 2
Thanks a lot!

Cheers,
Louis


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.