/ Published in: C#
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
public static int GetNumberOfPages(string pdfData) { var matches = regx.Matches(pdfData); return matches.Count; }
You need to login to post a comment.
