Welcome Guest Search | Active Topics | Sign In | Register

pagination issue in pdf file Options
ashish
Posted: Tuesday, April 7, 2020 6:59:38 AM
Rank: Member
Groups: Member

Joined: 12/9/2019
Posts: 18
hello team,

My problem is regarding to pagination. fortunately I am getting pagination on my pdf file but When i am have attachment file along with pdf file that time I am not getting pagination into a proper sequential manner

for example: lets say I have 3 pages of main pdf file and along with that I have 2 pages of attached file. when pagination should be 1,2,3,4,5. in sequence but it is behaving like 1,2,3 for the main file and for attached it is restarting like 1,2.

Note:There is only pdf file.

I am using below code:

private void On_AfterRenderPage(object sender, EO.Pdf.PdfPageEventArgs e)
{


EO.Pdf.HtmlToPdf.Options.OutputArea = new System.Drawing.RectangleF(7f, 10, 8.5f, 1);
int pageNumber = e.Page.Index + 1;
String pagination= "Page " + pageNumber;
EO.Pdf.HtmlToPdf.ConvertHtml(pagination, e.Page);


}
eo_support
Posted: Tuesday, April 7, 2020 9:54:57 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Since you are adding page number through your own code, why not adjust the page numbers in your code?


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.