Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfValidationResult

OfficeIMO.Pdf

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

Wrapper-friendly validation result for checking whether a PDF can be read or safely rewritten by OfficeIMO.Pdf.

Inheritance

  • object
  • PdfValidationResult

Methods

public bool Can(PdfPreflightCapability capability) #

Returns true when a specific read, extraction, or manipulation capability is available.

Parameters

capability OfficeIMO.Pdf.PdfPreflightCapability required

Returns

bool
public IReadOnlyList<string> GetCapabilityDiagnostics(PdfPreflightCapability capability) #

Returns diagnostics explaining why a specific capability is unavailable.

Parameters

capability OfficeIMO.Pdf.PdfPreflightCapability required

Returns

IReadOnlyList<string>
public bool HasReadBlocker(PdfReadBlockerKind kind) #

Returns true when a specific read blocker is present.

Parameters

kind OfficeIMO.Pdf.PdfReadBlockerKind required

Returns

bool
public bool HasRewriteBlocker(PdfRewriteBlockerKind kind) #

Returns true when a specific rewrite blocker is present.

Parameters

kind OfficeIMO.Pdf.PdfRewriteBlockerKind required

Returns

bool

Properties

public PdfDocumentPreflight Preflight { get; } #

Underlying preflight report with detailed capability and blocker information.

public bool IsValid { get; } #

True when OfficeIMO.Pdf can parse enough of the document for read-oriented operations.

public bool CanRead { get; } #

True when OfficeIMO.Pdf can parse enough of the document for read-oriented operations.

public bool CanRewrite { get; } #

True when OfficeIMO.Pdf can attempt rewrite-style operations without known blockers.

public bool CanExtractText { get; } #

True when OfficeIMO.Pdf can extract text from the document.

public bool CanExtractImages { get; } #

True when OfficeIMO.Pdf can extract images from the document.

public bool CanReadLogicalObjects { get; } #

True when OfficeIMO.Pdf can load logical readback objects from the document.

public bool CanManipulatePages { get; } #

True when OfficeIMO.Pdf can attempt page manipulation helpers without known blockers.

public bool CanFillSimpleFormFields { get; } #

True when OfficeIMO.Pdf can fill supported simple AcroForm fields.

public bool CanFlattenSimpleFormFields { get; } #

True when OfficeIMO.Pdf can flatten supported simple AcroForm fields.

public bool CanFillAndFlattenSimpleFormFields { get; } #

True when OfficeIMO.Pdf can fill and flatten supported simple AcroForm fields.

public PdfAppendOnlyMutationReport AppendOnlyMutationReport { get; } #

Append-only mutation policy for metadata, form-value, and external-signature revisions.

public bool CanAppendMetadataRevision { get; } #

True when OfficeIMO.Pdf can append a metadata-only revision to this input.

public bool CanAppendFormFieldRevision { get; } #

True when OfficeIMO.Pdf can append simple AcroForm field-value revisions to this input.

public bool CanPrepareExternalSignatureRevision { get; } #

True when OfficeIMO.Pdf can append an external-signature placeholder revision to this input.

public PdfDocumentInfo? DocumentInfo { get; } #

Parsed document information when validation reached inspection.

public PdfDocumentProbe Probe { get; } #

Lightweight PDF markers read before full parsing.

public string? HeaderVersion { get; } #

PDF header version when one was discovered.

public int PageCount { get; } #

Page count when the document could be inspected; otherwise 0.

public IReadOnlyList<string> Diagnostics { get; } #

Human-readable diagnostics explaining validation failures or rewrite blockers.

public IReadOnlyList<PdfReadBlocker> ReadBlockers { get; } #

Structured reasons why read-oriented validation failed.

public IReadOnlyList<PdfRewriteBlocker> RewriteBlockers { get; } #

Structured reasons why rewrite-style operations are blocked.