We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to BindPdf PDF file with a password?

//Create PdfBookmarkEditor object
Aspose.Pdf.Facades.PdfBookmarkEditor bookmarkEditor = new Aspose.Pdf.Facades.PdfBookmarkEditor();
//Open PDF file with password
bookmarkEditor.BindPdf("123.pdf");//Error invalid password!

Hi Huang,


Thanks for your inquiry. You may use BindPdf constructor that accepts password as second parameter.

BindPdf(Stream srcStream, string password);
BindPdf(string srcFile, string password);

Please feel free to contact us for any further assistance.

Best Regards,