/ 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
                            
                        
                        Copy this code and paste it in your HTML
public static int GetNumberOfPages(string pdfData)
{
var matches = regx.Matches(pdfData);
return matches.Count;
}
Comments
 Subscribe to comments
                    Subscribe to comments
                
                