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.
Unfortunately, activation email could not send to your email. Please try again.

Enable password protected PDF document

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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?

Thanks

Melba Winshia [Syncfusion]
Replied On August 29, 2007 10:22 AM

Hi,

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.

[C#]


// Set encryption key.
pdfDoc.Security.KeyLength=EncryptionKeyLength.Key128Bit;

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\5.1.0.51\Windows\Pdf.Windows\Samples\2.0\Grid Model\Security\EncryptionSupport\cs

Please try this and let me know if this helps.

Thanks,
Melba


CONFIRMATION

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.

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.

;