Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfExternalValidationResult

OfficeIMO.Pdf

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

Result from a caller- or CI-run external PDF compliance validator.

Inheritance

  • object
  • PdfExternalValidationResult

Usage

Explore 18 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.

Accepted by parameters 3

Constructors

public PdfExternalValidationResult(PdfExternalValidatorKind validatorKind, PdfExternalValidationStatus status, string validatorName, string diagnostic, string? profile = null, string? executablePath = null, string? arguments = null, int? exitCode = null, string? validatorVersion = null, string? artifactSha256 = null, long? artifactSizeBytes = null, DateTimeOffset? validatedAtUtc = null, IEnumerable<string>? warnings = null) #

Creates an external validation result.

Parameters

validatorKind OfficeIMO.Pdf.PdfExternalValidatorKind required
status OfficeIMO.Pdf.PdfExternalValidationStatus required
validatorName string required
diagnostic string required
profile string? = null optional
executablePath string? = null optional
arguments string? = null optional
exitCode int? = null optional
validatorVersion string? = null optional
artifactSha256 string? = null optional
artifactSizeBytes long? = null optional
validatedAtUtc System.DateTimeOffset? = null optional
warnings System.Collections.Generic.IEnumerable<string>? = null optional

Methods

public static PdfExternalValidationResult Error(PdfExternalValidatorKind validatorKind, string validatorName, string diagnostic, string? profile = null, int? exitCode = null) #

Creates a validator error result.

Parameters

validatorKind OfficeIMO.Pdf.PdfExternalValidatorKind required
validatorName string required
diagnostic string required
profile string? = null optional
exitCode int? = null optional
public static PdfExternalValidationResult Failed(PdfExternalValidatorKind validatorKind, string validatorName, string diagnostic, string? profile = null, int? exitCode = null) #

Creates a failing validator result.

Parameters

validatorKind OfficeIMO.Pdf.PdfExternalValidatorKind required
validatorName string required
diagnostic string required
profile string? = null optional
exitCode int? = null optional
public static PdfExternalValidationResult FromExitCode(PdfExternalValidatorKind validatorKind, int exitCode, string validatorName, string diagnostic, string? profile = null, string? executablePath = null, string? arguments = null, int successExitCode = 0) #

Creates a validator result from a process exit code, treating the configured success code as Passed and all other codes as Failed.

Parameters

validatorKind OfficeIMO.Pdf.PdfExternalValidatorKind required
exitCode int required
validatorName string required
diagnostic string required
profile string? = null optional
executablePath string? = null optional
arguments string? = null optional
successExitCode int = 0 optional
public static PdfExternalValidationResult FromExitCodeForArtifact(PdfExternalValidatorKind validatorKind, int exitCode, string validatorName, string validatorVersion, string diagnostic, byte[] artifact, string? profile = null, string? executablePath = null, string? arguments = null, int successExitCode = 0, IEnumerable<string>? warnings = null, DateTimeOffset? validatedAtUtc = null) #

Creates an exit-code result bound to the exact supplied PDF bytes.

Parameters

validatorKind OfficeIMO.Pdf.PdfExternalValidatorKind required
exitCode int required
validatorName string required
validatorVersion string required
diagnostic string required
artifact byte[] required
profile string? = null optional
executablePath string? = null optional
arguments string? = null optional
successExitCode int = 0 optional
warnings System.Collections.Generic.IEnumerable<string>? = null optional
validatedAtUtc System.DateTimeOffset? = null optional
public static PdfExternalValidationResult NotRun(PdfExternalValidatorKind validatorKind, string validatorName, string diagnostic, string? profile = null) #

Creates a not-run validator result.

Parameters

validatorKind OfficeIMO.Pdf.PdfExternalValidatorKind required
validatorName string required
diagnostic string required
profile string? = null optional
public static PdfExternalValidationResult NotRunForArtifact(PdfExternalValidatorKind validatorKind, string validatorName, string validatorVersion, string diagnostic, byte[] artifact, string? profile = null, IEnumerable<string>? warnings = null, DateTimeOffset? recordedAtUtc = null) #

Creates a not-run result associated with an intended exact PDF artifact.

Parameters

validatorKind OfficeIMO.Pdf.PdfExternalValidatorKind required
validatorName string required
validatorVersion string required
diagnostic string required
artifact byte[] required
profile string? = null optional
warnings System.Collections.Generic.IEnumerable<string>? = null optional
recordedAtUtc System.DateTimeOffset? = null optional
public static PdfExternalValidationResult Passed(PdfExternalValidatorKind validatorKind, string validatorName, string diagnostic, string? profile = null) #

Creates a passing validator result.

Parameters

validatorKind OfficeIMO.Pdf.PdfExternalValidatorKind required
validatorName string required
diagnostic string required
profile string? = null optional
public static PdfExternalValidationResult PassedForArtifact(PdfExternalValidatorKind validatorKind, string validatorName, string validatorVersion, string diagnostic, byte[] artifact, string? profile = null, IEnumerable<string>? warnings = null, string? executablePath = null, string? arguments = null, int? exitCode = 0, DateTimeOffset? validatedAtUtc = null) #

Creates a passing result bound to the exact supplied PDF bytes.

Parameters

validatorKind OfficeIMO.Pdf.PdfExternalValidatorKind required
validatorName string required
validatorVersion string required
diagnostic string required
artifact byte[] required
profile string? = null optional
warnings System.Collections.Generic.IEnumerable<string>? = null optional
executablePath string? = null optional
arguments string? = null optional
exitCode int? = 0 optional
validatedAtUtc System.DateTimeOffset? = null optional

Properties

public PdfExternalValidatorKind ValidatorKind { get; } #

Validator family.

public PdfExternalValidationStatus Status { get; } #

Validation outcome.

public string ValidatorName { get; } #

Human-readable validator name, for example veraPDF or Mustang.

public string Diagnostic { get; } #

Human-readable result details from the caller or validator.

public string? Profile { get; } #

Optional profile string used by the external tool.

public string? ExecutablePath { get; } #

Optional executable path used by CI or wrapper tooling.

public string? Arguments { get; } #

Optional command-line arguments used by CI or wrapper tooling.

public int? ExitCode { get; } #

Optional process exit code reported by CI or wrapper tooling.

public string? ValidatorVersion { get; } #

Validator version reported by the proof runner.

public string? ArtifactSha256 { get; } #

Lowercase SHA-256 of the exact PDF bytes supplied to the validator.

public long? ArtifactSizeBytes { get; } #

Size of the exact validated PDF artifact, in bytes.

public DateTimeOffset? ValidatedAtUtc { get; } #

UTC timestamp recorded by the proof runner after validation.

public IReadOnlyList<string> Warnings { get; } #

Warnings reported by the validator or proof runner.

public bool HasArtifactBinding { get; } #

True when this result identifies an exact PDF artifact by SHA-256 and byte length.