Click here to Skip to main content
15,884,915 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to get the page number in pdf file using iTextSharp in asp.net using C#
Posted
Comments
[no name] 23-Nov-12 8:02am    
Have you tried this : e.FooterText = writer.CurrentPageNumber.ToString(); ???
David_Wimbley 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 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900