Class PdfValidationResult

Namespace
EInvoice.FacturX.Validation
Assembly
EInvoice.FacturX.dll

The outcome of running Validate(Stream) against an input PDF.

public sealed class PdfValidationResult
Inheritance
PdfValidationResult
Inherited Members

Constructors

PdfValidationResult(IEnumerable<PdfViolation>)

Initialises a result from the collected violations.

public PdfValidationResult(IEnumerable<PdfViolation> violations)

Parameters

violations IEnumerable<PdfViolation>

Properties

IsValid

true when no Fatal violations were found; the PDF is safe to pass to HybridInvoiceMerger.Merge.

public bool IsValid { get; }

Property Value

bool

Violations

All violations detected during validation, ordered by the sequence in which they were found.

public IReadOnlyList<PdfViolation> Violations { get; }

Property Value

IReadOnlyList<PdfViolation>