PDF password remover - code example?

Hi Aspose team,

in your " PDF password remover" example you are managing to remove password if somebody is forgetting it. Do you have code example how to do that?

Thx,
Oliver

@dr.doc

Could you please share the link of the example which you are referring? We will further share our feedback with you accordingly.

@dr.doc

We believe that you are referring to (Unlock PDF - PDF password remover online). We are collecting further information against it and will get back to you soon.

Exactly, this is where I saw that you can remove existing password.
I know how to unlock document if password is known but would like to know how you managed to remove password without providing it :slight_smile:

@dr.doc

The online application is not for the removal of the password. It basically removes the restrictions in the documents. For example, if the document has restrictions on updating, printing, etc. If the document is protected for an open password, it will not be removed (at least for now). The code behind unlocking feature is simple as given below:

Document doc = new Document("encrypted.pdf);
doc.Decrypt();
doc.Save("decrypted.pdf");

Can you try attached document where I set password for opening document?
After I uploaded and processed this document via Unlock PDF - PDF password remover online, password was removed as I was able to open downloaded document without password.

helia_protected.pdf (125.1 KB)

Problem resolved on our side for this particular document. You can close the ticket.

@dr.doc

Thanks for the acknowledgment.

We have closed this thread. Please feel free to create a new post in case you need further assistance.