Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfDocumentSecurityInfo

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
be6c300e4ab1 with working tree changes
Modifiers
sealed

Lightweight security, signature, and revision markers read from a PDF file.

Inheritance

  • object
  • PdfDocumentSecurityInfo

Usage

Explore 10 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Properties

public bool HasEncryption { get; } #

True when the file contains an /Encrypt marker.

public int? EncryptObjectNumber { get; } #

Encryption dictionary object number when the trailer points to an indirect dictionary.

public string? EncryptionFilter { get; } #

Encryption /Filter name, for example Standard, when readable.

public string? EncryptionSubFilter { get; } #

Encryption /SubFilter name, when readable.

public int? EncryptionVersion { get; } #

Raw encryption algorithm version from /V, when readable.

public int? EncryptionRevision { get; } #

Raw standard-security-handler revision from /R, when readable.

public int? EncryptionLengthBits { get; } #

Encryption key length in bits from /Length, when readable.

public int? EncryptionPermissions { get; } #

Raw permission bits: /P for the Standard handler, or the authenticated recipient's permissions for the public-key handler.

public PdfStandardPermissions? AllowedStandardPermissions { get; } #

Typed Standard security permissions, when a raw `/P` mask is present.

public bool? EncryptMetadata { get; } #

Encryption /EncryptMetadata flag, when readable.

public PdfPasswordAuthenticationRole PasswordAuthenticationRole { get; } #

Role established by the supplied Standard-security password or public-key recipient certificate, or PdfPasswordAuthenticationRole.None when no authentication was performed.

public bool HasOwnerAuthorization { get; } #

True when the supplied password authenticated as the Standard-security owner password.

public bool HasReadableEncryptionSettings { get; } #

True when the encryption dictionary exposed at least one readable setting.

public bool? AllowsPrinting { get; } #

True when the raw permissions allow low-resolution printing.

public bool? AllowsModification { get; } #

True when the raw permissions allow document modification.

public bool? AllowsCopying { get; } #

True when the raw permissions allow content copying or extraction.

public bool? AllowsAnnotationChanges { get; } #

True when the raw permissions allow comments or form-field annotation changes.

public bool? AllowsFormFilling { get; } #

True when the raw permissions allow filling existing form fields.

public bool? AllowsAccessibilityExtraction { get; } #

True when the raw permissions allow accessibility extraction.

public bool? AllowsDocumentAssembly { get; } #

True when the raw permissions allow document assembly.

public bool? AllowsHighQualityPrinting { get; } #

True when the raw permissions allow high-quality printing.

public bool HasSignatures { get; } #

True when signature markers, signature fields, or signature values were found.

public IReadOnlyList<int> SignatureFieldObjectNumbers { get; } #

Object numbers for AcroForm fields whose /FT is /Sig.

public IReadOnlyList<string> SignatureFieldNames { get; } #

Readable names for AcroForm signature fields.

public IReadOnlyList<PdfSignatureInfo> Signatures { get; } #

Readable signature value dictionaries and their owning AcroForm fields.

public int SignatureFieldCount { get; } #

Number of AcroForm fields whose /FT is /Sig.

public int SignatureCount { get; } #

Number of readable signature value dictionaries.

public int SignatureValueCount { get; } #

Number of signature value dictionaries discovered from /Type /Sig or /ByteRange.

public bool HasByteRange { get; } #

True when a signature /ByteRange array was found.

public int ByteRangeValueCount { get; } #

Number of numeric values found in signature /ByteRange arrays.

public int ByteRangeSegmentCount { get; } #

Number of byte ranges represented by the numeric /ByteRange values.

public int? AcroFormSignatureFlags { get; } #

Raw AcroForm /SigFlags value, when readable.

public bool AcroFormSignaturesExist { get; } #

True when AcroForm /SigFlags says signatures exist.

public bool AcroFormAppendOnly { get; } #

True when AcroForm /SigFlags says changes should be appended.

public bool HasDocMDPPermissions { get; } #

True when catalog /Perms exposes DocMDP permissions.

public int? DocMDPSignatureObjectNumber { get; } #

Object number referenced by catalog /Perms /DocMDP, when readable.

public string? DocMDPTransformMethod { get; } #

DocMDP signature reference /TransformMethod name, when readable.

public string? DocMDPTransformVersion { get; } #

DocMDP /TransformParams /V version name or string, when readable.

public int? DocMDPPermissionLevel { get; } #

DocMDP /TransformParams /P permission level, when readable.

public bool HasUsageRights { get; } #

True when catalog /Perms exposes usage-rights entries such as /UR or /UR3.

public IReadOnlyList<int> UsageRightsObjectNumbers { get; } #

Object numbers referenced by catalog usage-rights entries such as /UR or /UR3.

public IReadOnlyList<string> UsageRightsFormPermissions { get; } #

Form rights granted by the usage-rights signature's /TransformParams /Form array, for example FillIn or Import.

public bool UsageRightsAllowFormFillIn { get; } #

True when the usage-rights signature grants form fill-in (/Form contains /FillIn).

public bool HasOnlyUsageRightsSignatures { get; } #

True when every signature value is a usage-rights signature referenced from catalog /Perms, so the document carries no approval or certification signature.

public PdfDocumentDssInfo DocumentSecurityStore { get; } #

Document Security Store (/DSS) evidence used for long-term signature validation, when present.

public bool HasDocumentSecurityStore { get; } #

True when the catalog exposes a /DSS dictionary.

public bool HasLongTermValidationEvidence { get; } #

True when the /DSS dictionary exposes validation evidence references or VRI entries.

public int? RootObjectNumber { get; } #

Trailer root catalog object number, when readable.

public int? RootObjectGeneration { get; } #

Trailer root catalog generation, when readable.

public int? InfoObjectNumber { get; } #

Trailer info dictionary object number, when readable.

public int? InfoObjectGeneration { get; } #

Trailer info dictionary generation, when readable.

public bool HasTrailerId { get; } #

True when a trailer /ID entry was found.

public int StartXrefCount { get; } #

Number of startxref sections found in the file.

public int? LastStartXrefOffset { get; } #

Offset from the last startxref section, when readable.

public IReadOnlyList<int> StartXrefOffsets { get; } #

All readable startxref offsets in file order.

public IReadOnlyList<int> PreviousXrefOffsets { get; } #

All readable /Prev offsets in file order.

public IReadOnlyList<PdfDocumentRevisionInfo> Revisions { get; } #

Readable cross-reference revision markers in file order.

public int RevisionCount { get; } #

Number of readable cross-reference revision markers.

public bool HasIncrementalUpdates { get; } #

True when multiple revisions or /Prev links were found.

public bool HasPreviousRevision { get; } #

True when a trailer or xref stream points to a previous revision.

public bool HasXrefStreams { get; } #

True when xref stream markers were found.

public bool HasObjectStreams { get; } #

True when object stream markers were found.

public bool RequiresAppendOnlyMutation { get; } #

True when mutation must preserve the existing file by appending a new revision instead of rewriting bytes in place.

public bool BlocksOfficeIMOAppendOnlyMutation { get; } #

True when the current OfficeIMO.Pdf writer cannot safely attempt append-only mutation for this input yet.

public bool BlocksOfficeIMOFullRewriteMutation { get; } #

True when OfficeIMO.Pdf should avoid safe full-rewrite mutation for this input.