ASP.NET PDF Processing SDK Component

GetPageCount

 

Add the user password to existing PDF File.
 

int GetPageCount(
 string strSourceFile 
)

 

Parameter
strSourceFile
the path of source pdf file.

Return Value
Return the total count of page.

Example

   

C# Syntax
using PDFProcessingWrapper;

 PDFProcessing obj = new PDFProcessing();
string strinputpath1 = HttpContext.Current.Server.MapPath("~/uploads/" + strInputPDFFile1);
int iPageCount = obj.GetPageCount(strinputpath1);