Hi Team,
I want to unlock and Stamp a PDF using .NET C#. I am able to Stamp PDF File but if PDF is locked / Password protected then its not working .
Request to you please help to unlock PDF.
Thanks in advance.
Hi Team,
I want to unlock and Stamp a PDF using .NET C#. I am able to Stamp PDF File but if PDF is locked / Password protected then its not working .
Request to you please help to unlock PDF.
Thanks in advance.
In order to load and stamp a password protected PDF file, you need to initialize the Document object using Password as in the following line of code:
Document doc = new Document("input.pdf", "{Password}");
Thanks for support and help. We don’t have password for PDF because we got this PDF from my customer.
Process - Open locked PDF from customer and stamp (Approved/ Canceled) on the basis of pdf Content
So I am able to stamp unlocked pdf but not able to stamp Locked PDF
Thanks in advance.
We are afraid that it would not be possible to unlock a password-protected PDF without supplying a password. You must have a valid open password for the document which you are processing. Please feel free to let us know in case you need further information.