Click or drag to resize
Pdf Library for .NET

Pdf Security

Select.Pdf can be used to set the basic security settings for the generated pdf files and also manage different permissions:

  • Owner Password

  • User Password

  • Assemble Document permission

  • Copy Content permission

  • Edit Annotations permission

  • Edit Content permission

  • Fill Form Fields permission

  • Print permission

This can be done using Security property of the PdfDocument object.

Code Sample
// set document passwords
doc.Security.OwnerPassword = "test1";
doc.Security.UserPassword = "test2";

//set document permissions
doc.Security.CanAssembleDocument = false;
doc.Security.CanCopyContent = true;
doc.Security.CanEditAnnotations = true;
doc.Security.CanEditContent = true;
doc.Security.CanFillFormFields = true;
doc.Security.CanPrint = true;
See Also