We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Enable password protected PDF document

Thread ID:





67721 Aug 29,2007 02:50 AM UTC Aug 29,2007 02:22 PM UTC ASP.NET Web Forms (Classic) 1
Tags: PDF
Asked On August 29, 2007 02:50 AM UTC

Would it be possible that Syncfusion Pdf component allows me set password into the generated PDF document so that the PDF doc only can be opened by authorized person?


Melba Winshia [Syncfusion]
Replied On August 29, 2007 02:22 PM UTC


Thank you for your interest in Essential PDF.

Yes. It is possible to set password to the generated PDF document by using PDFDocument.Security.UserPassword property.


// Set encryption key.

To set User/Owner password.
// Setting username and password to protect the document.
pdfDoc.Security.OwnerPassword = "Syncfusion";
pdfDoc.Security.UserPassword = "111";

Please refer to the following shipped browser sample for more details.

C:\Documents and Settings\{user}\My Documents\Syncfusion\EssentialStudio\\Windows\Pdf.Windows\Samples\2.0\Grid Model\Security\EncryptionSupport\cs

Please try this and let me know if this helps.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon