[]
Returns a PdfSecurity object for initializing document encryption and security.
[TypeConverter(typeof(ExpandableObjectConverter))]
public PdfSecurity Security { get; }
You must set the Encrypt property to true in order for the document to be encrypted and the permissions enforced.