Click or drag to resize
Pdf Library for .NET

PdfSecurityManagerGetSecurityInfo Method

Gets the security settings of the loaded document as it was loaded: its encryption, its permissions and the signatures it carries. Changes made on this manager are not reflected.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.6
Syntax
public PdfSecurityInfo GetSecurityInfo()

Return Value

PdfSecurityInfo
The security settings.
Example
PdfSecurityManager manager = new PdfSecurityManager();
manager.Load("document.pdf", "password");
PdfSecurityInfo info = manager.GetSecurityInfo();
System.Console.WriteLine(info.IsEncrypted + " " + info.SignatureCount);
manager.Close();
See Also