The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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?
MWMelba Winshia Syncfusion Team August 29, 2007 02:22 PM UTC
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