Click or drag to resize

PdfSecurityInfo Class

The security settings of a PDF document, returned by GetSecurityInfo(String): encryption, permissions, passwords and signatures. Reading them does not change the document.
Inheritance Hierarchy
SystemObject
  ExpertPdf.PDFSecurityPdfSecurityInfo

Namespace: ExpertPdf.PDFSecurity
Assembly: epsecurepdf (in epsecurepdf.dll) Version: 10.0
Syntax
public class PdfSecurityInfo

The PdfSecurityInfo type exposes the following members.

Properties
 NameDescription
Public propertyAlgorithm Gets the encryption algorithm (RC4 or AES). Meaningful only when IsEncrypted is true.
Public propertyCanAccessibilityCopyContent Gets a flag indicating if the content can be extracted for accessibility (screen readers).
Public propertyCanAssembleDocument Gets a flag indicating if the document can be assembled: pages inserted, rotated or deleted, bookmarks and thumbnails created.
Public propertyCanCopyContent Gets a flag indicating if the content (text and images) can be copied.
Public propertyCanEditAnnotations Gets a flag indicating if annotations (comments) can be added or changed.
Public propertyCanEditContent Gets a flag indicating if the content of the document can be changed.
Public propertyCanFillFormFields Gets a flag indicating if the form fields can be filled in (and the document signed).
Public propertyCanFullQualityPrint Gets a flag indicating if the document can be printed in high quality. When it is false and CanPrint is true, viewers print a low resolution image of the pages.
Public propertyCanPrint Gets a flag indicating if the document can be printed.
Public propertyCertificationLevel Gets the certification level of a certified document: the changes its certification signature allows. None when the document is not certified.
Public propertyIsCertified Gets a flag indicating if the document has a certification (author) signature.
Public propertyIsEncrypted Gets a flag indicating if the document is encrypted.
Public propertyIsMetadataEncrypted Gets a flag indicating if the XMP metadata of an encrypted document is encrypted too. False when the document is not encrypted.
Public propertyIsOpened Gets a flag indicating if the document could be opened to read its content: it is not encrypted, it has no user password, or the password given to GetSecurityInfo(String, String) opened it. The signature information (IsSigned, SignatureCount, IsCertified) is available only when this is true.
Public propertyIsOwnerPasswordRequired Gets a flag indicating if the owner password is needed for full access to the document: the document is encrypted and at least one permission is denied.
Public propertyIsSigned Gets a flag indicating if the document has at least one signature.
Public propertyIsUserPasswordRequired Gets a flag indicating if a password is needed to open the document (it has a user password).
Public propertyKeyLength Gets the length of the encryption key in bits (40 to 256). 0 when the document is not encrypted.
Public propertyKeySize Gets the size of the encryption key (40, 128 or 256 bit). Meaningful only when IsEncrypted is true. A key length that is not one of these is reported as the next larger size; KeyLength has the exact length.
Public propertyPermissionFlags Gets the raw permission flags of an encrypted document (the P entry of the encryption dictionary, ISO 32000). -1 (every permission) when the document is not encrypted.
Public propertyRevision Gets the revision of the password security handler: 2 (RC4 40 bit), 3 (RC4 up to 128 bit), 4 (RC4 or AES 128 bit), 5 (AES 256 bit, an early version of the standard) or 6 (AES 256 bit, the current standard). 0 when the document is not encrypted or the security handler is not the password one.
Public propertySecurityHandler Gets the name of the security handler of an encrypted document: "Standard" for password security. Empty when the document is not encrypted.
Public propertySignatureCount Gets the number of signatures (signed signature fields) of the document.
Top
See Also