Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
How to get the page number in pdf file using iTextSharp in asp.net using C#
Posted 23-Nov-12 0:58am
Comments
Krunal R at 23-Nov-12 8:02am
   
Have you tried this : e.FooterText = writer.CurrentPageNumber.ToString(); ???
Plyswthsqurles at 23-Nov-12 10:22am
   
Are you looking for a specific string on one of the PDF pages and want to get the page number of that string? If so i've got a code snippet i can post but will only do so if that is what you are looking for. Otherwise your question is not clear.
Killzone DeathMan at 26-Nov-12 5:20am
   
Maybe this can help you a little: PdfReader reader = new iTextSharp.text.pdf.PdfReader("filePath/To/the/PDF/Page.pdf"); int NumberOfPages = reader.NumberOfPages; if you want some help using iTextSharp, here's my email: miguel.poegel@pears.fr

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Shai Vashdi 1,485
1 OriginalGriff 463
2 Manas Bhardwaj 383
3 Damith Weerasinghe 340
4 Tadit Dash 330
0 Sergey Alexandrovich Kryukov 9,575
1 OriginalGriff 6,006
2 Peter Leow 4,500
3 Maciej Los 3,540
4 Abhinav S 3,513


Advertise | Privacy | Mobile
Web02 | 2.8.140415.2 | Last Updated 23 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid