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); }
|
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?
|