|
Add the user password to existing PDF File.
bool Encrypt( string strSourceFile , string strOutputFile , string strUserPass , string strOwnerPass )
|
Parameter strSourceFile the path of source pdf file.
strOutputFile the path of the output pdf file.
strUserPass the string of user password.
strOwnerPass the string of owner password.
Return Value Return true - successful Return false - failed
Example
|
C# Syntax using PDFProcessingWrapper;
PDFProcessing obj = new PDFProcessing(); string stroutpath = HttpContext.Current.Server.MapPath("~/output/" + myUniqueFileName); string strinputpath1 = HttpContext.Current.Server.MapPath("~/uploads/" + strInputPDFFile1); string strinputpath2 = HttpContext.Current.Server.MapPath("~/uploads/" + strInputPDFFile2); bool bResult = obj.Encrypt(strinputpath1, stroutpath, strUserPass,strOwnerPass);
|
|
|