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

Free Support Forum - aspose.com

Unlock a pdf file with only permission password


I am trying to unlock a pdf file which has Edit password but no open password but it is giving me error as "Document must be opened with valid password in order to read this property" when i try to read HasEditPassword property using PdfFileInfo class.

How can i open a file which doesn't has any open password?

Please assist.


Hi Anupam,

Thanks for your inquiry. Please check following documentation to open password protected PDF file. It will help you to accomplish the task. If you find any issue then please share you sample PDF document here, we will look into it and will guide you accordingly.

Please feel free to contact us for any further assistance.

Best Regards,