The security settings of a PDF document, returned by
GetSecurityInfo(String):
encryption, permissions, passwords and signatures. Reading them does not change the document.
Inheritance HierarchySystemObject
ExpertPdf.Anywhere.PDFSecurityPdfSecurityInfo
Namespace: ExpertPdf.Anywhere.PDFSecurityAssembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntaxpublic class PdfSecurityInfo
Public Class PdfSecurityInfo
The PdfSecurityInfo type exposes the following members.
Properties| | Name | Description |
|---|
 | Algorithm |
Gets the encryption algorithm (RC4 or AES). Meaningful only when IsEncrypted is true.
|
 | CanAccessibilityCopyContent |
Gets a flag indicating if the content can be extracted for accessibility (screen readers).
|
 | CanAssembleDocument |
Gets a flag indicating if the document can be assembled: pages inserted, rotated or deleted, bookmarks and
thumbnails created.
|
 | CanCopyContent |
Gets a flag indicating if the content (text and images) can be copied.
|
 | CanEditAnnotations |
Gets a flag indicating if annotations (comments) can be added or changed.
|
 | CanEditContent |
Gets a flag indicating if the content of the document can be changed.
|
 | CanFillFormFields |
Gets a flag indicating if the form fields can be filled in (and the document signed).
|
 | CanFullQualityPrint |
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.
|
 | CanPrint |
Gets a flag indicating if the document can be printed.
|
 | CertificationLevel |
Gets the certification level of a certified document: the changes its certification signature allows.
None when the document is not certified.
|
 | IsCertified |
Gets a flag indicating if the document has a certification (author) signature.
|
 | IsEncrypted |
Gets a flag indicating if the document is encrypted.
|
 | IsMetadataEncrypted |
Gets a flag indicating if the XMP metadata of an encrypted document is encrypted too.
False when the document is not encrypted.
|
 | IsOpened |
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.
|
 | IsOwnerPasswordRequired |
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.
|
 | IsSigned |
Gets a flag indicating if the document has at least one signature.
|
 | IsUserPasswordRequired |
Gets a flag indicating if a password is needed to open the document (it has a user password).
|
 | KeyLength |
Gets the length of the encryption key in bits (40 to 256). 0 when the document is not encrypted.
|
 | KeySize |
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.
|
 | PermissionFlags |
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.
|
 | Revision |
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.
|
 | SecurityHandler |
Gets the name of the security handler of an encrypted document: "Standard" for password security.
Empty when the document is not encrypted.
|
 | SignatureCount |
Gets the number of signatures (signed signature fields) of the document.
|
Top
See Also