Quote Originally Posted by rktech View Post
Hello Stanav,

First of all thanks for your valuable post. It helped me a lot in few fuzzy things.
I am using the itextsharp 5.1.1.0 dll version along with your PDFManipulation2.vb code.

I want to remove restrictions of the PDF File which has 128 bit AES encryption. But i only have user password & do not have owner password.

For that i tried your method named "RemoveRestrictions" but it's throwing exception stating "Bad User Password". So could you please help me in this ?

Thanks in advance...
I've made some changes in the RemoveRestrictions method to allow a password to be passed in if the restricted pdf is password protected. You need to re-download the PdfManipulation2.vb class.