/ Published in: C#
![](/img/icon_sav.png?v3)
Open a PDF document and store the data in a string. Provide that string to this function and it will return the number of pages in the PDF.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public static int GetNumberOfPages(string pdfData) { var matches = regx.Matches(pdfData); return matches.Count; }
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)