The following code sample shows how to process password protected documents.
LoadOptionsloadOptions=newLoadOptions(){Password="1234567890"};using(Signaturesignature=newSignature("sampleProtected.pdf",loadOptions)){QrCodeSignOptionsoptions=newQrCodeSignOptions("JohnSmith"){EncodeType=QRCodeTypes.QR,Left=100,Top=100};// sign document to filesignature.Sign("SignedSampleProtected",options);}
More resources
GitHub Examples
You may easily run the code above and see the feature in action in our GitHub examples:
Along with the full-featured .NET library, we provide simple but powerful free online apps. To sign PDF, Word, Excel, PowerPoint, and other documents you can use the online apps from the GroupDocs.Signature App Product Family.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.
On this page
Ask AI
Ask anything about this page — the answer is based on its content.
Searching the docs and writing an answer…
Something went wrong while getting an answer. Please try again in a moment.