# PdfValidationResult

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

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfValidationResult.cs:78](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfValidationResult.cs#L78)

**Modifiers**

sealed

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

## Inheritance

- object
- PdfValidationResult

Filter members 

Show inherited

## Methods

`public bool Can(PdfPreflightCapability capability)` [#](#method-can-officeimo-pdf-pdfpreflightcapability)

[PdfValidationResult.cs:84](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfValidationResult.cs#L84)

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)` [#](#method-getcapabilitydiagnostics-officeimo-pdf-pdfpreflightcapability)

[PdfValidationResult.cs:87](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfValidationResult.cs#L87)

Returns diagnostics explaining why a specific capability is unavailable.

Parameters

**capability OfficeIMO.Pdf.PdfPreflightCapability required**

Returns

`IReadOnlyList<string>`

`public bool HasReadBlocker(PdfReadBlockerKind kind)` [#](#method-hasreadblocker-officeimo-pdf-pdfreadblockerkind)

[PdfValidationResult.cs:78](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfValidationResult.cs#L78)

Returns true when a specific read blocker is present.

Parameters

**kind OfficeIMO.Pdf.PdfReadBlockerKind required**

Returns

`bool`

`public bool HasRewriteBlocker(PdfRewriteBlockerKind kind)` [#](#method-hasrewriteblocker-officeimo-pdf-pdfrewriteblockerkind)

[PdfValidationResult.cs:81](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfValidationResult.cs#L81)

Returns true when a specific rewrite blocker is present.

Parameters

**kind OfficeIMO.Pdf.PdfRewriteBlockerKind required**

Returns

`bool`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public PdfDocumentPreflight Preflight { get; }` [#](#property-preflight)

[PdfValidationResult.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfValidationResult.cs#L12)

Underlying preflight report with detailed capability and blocker information.

`public bool IsValid { get; }` [#](#property-isvalid)

[PdfValidationResult.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfValidationResult.cs#L15)

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

`public bool CanRead { get; }` [#](#property-canread)

[PdfValidationResult.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfValidationResult.cs#L18)

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

`public bool CanRewrite { get; }` [#](#property-canrewrite)

[PdfValidationResult.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfValidationResult.cs#L21)

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

`public bool CanExtractText { get; }` [#](#property-canextracttext)

[PdfValidationResult.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfValidationResult.cs#L24)

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

`public bool CanExtractImages { get; }` [#](#property-canextractimages)

[PdfValidationResult.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfValidationResult.cs#L27)

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

`public bool CanReadLogicalObjects { get; }` [#](#property-canreadlogicalobjects)

[PdfValidationResult.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfValidationResult.cs#L30)

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

`public bool CanManipulatePages { get; }` [#](#property-canmanipulatepages)

[PdfValidationResult.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfValidationResult.cs#L33)

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

`public bool CanFillSimpleFormFields { get; }` [#](#property-canfillsimpleformfields)

[PdfValidationResult.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfValidationResult.cs#L36)

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

`public bool CanFlattenSimpleFormFields { get; }` [#](#property-canflattensimpleformfields)

[PdfValidationResult.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfValidationResult.cs#L39)

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

`public bool CanFillAndFlattenSimpleFormFields { get; }` [#](#property-canfillandflattensimpleformfields)

[PdfValidationResult.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfValidationResult.cs#L42)

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

`public PdfAppendOnlyMutationReport AppendOnlyMutationReport { get; }` [#](#property-appendonlymutationreport)

[PdfValidationResult.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfValidationResult.cs#L45)

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

`public bool CanAppendMetadataRevision { get; }` [#](#property-canappendmetadatarevision)

[PdfValidationResult.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfValidationResult.cs#L48)

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

`public bool CanAppendFormFieldRevision { get; }` [#](#property-canappendformfieldrevision)

[PdfValidationResult.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfValidationResult.cs#L51)

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

`public bool CanPrepareExternalSignatureRevision { get; }` [#](#property-canprepareexternalsignaturerevision)

[PdfValidationResult.cs:54](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfValidationResult.cs#L54)

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

`public PdfDocumentInfo? DocumentInfo { get; }` [#](#property-documentinfo)

[PdfValidationResult.cs:57](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfValidationResult.cs#L57)

Parsed document information when validation reached inspection.

`public PdfDocumentProbe Probe { get; }` [#](#property-probe)

[PdfValidationResult.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfValidationResult.cs#L60)

Lightweight PDF markers read before full parsing.

`public string? HeaderVersion { get; }` [#](#property-headerversion)

[PdfValidationResult.cs:63](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfValidationResult.cs#L63)

PDF header version when one was discovered.

`public int PageCount { get; }` [#](#property-pagecount)

[PdfValidationResult.cs:66](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfValidationResult.cs#L66)

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

`public IReadOnlyList<string> Diagnostics { get; }` [#](#property-diagnostics)

[PdfValidationResult.cs:69](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfValidationResult.cs#L69)

Human-readable diagnostics explaining validation failures or rewrite blockers.

`public IReadOnlyList<PdfReadBlocker> ReadBlockers { get; }` [#](#property-readblockers)

[PdfValidationResult.cs:72](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfValidationResult.cs#L72)

Structured reasons why read-oriented validation failed.

`public IReadOnlyList<PdfRewriteBlocker> RewriteBlockers { get; }` [#](#property-rewriteblockers)

[PdfValidationResult.cs:75](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfValidationResult.cs#L75)

Structured reasons why rewrite-style operations are blocked.

<!-- PowerForge markdown artifact sha256:B862F66FD34D54233C4B8F1635D018DD5DAB72BC19F6B993B8963B6B07F2C900 -->
