PdfExternalValidationResult
OfficeIMO.Pdf
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.
Returned or exposed by 15
- Method PdfComplianceProofReport.FindExternalValidation
- Property PdfComplianceProofReport.ExternalValidations
- Property PdfComplianceProofReport.FailedExternalValidations
- Method PdfExternalValidationResult.Error
- Method PdfExternalValidationResult.Failed
- Method PdfExternalValidationResult.FromExitCode
- Method PdfExternalValidationResult.FromExitCodeForArtifact
- Method PdfExternalValidationResult.NotRun
- Method PdfExternalValidationResult.NotRunForArtifact
- Method PdfExternalValidationResult.Passed
- Method PdfExternalValidationResult.PassedForArtifact
- Property PdfExternalValidatorProof.BlockingValidation
- Property PdfExternalValidatorProof.PassingValidation
- Property PdfExternalValidatorProof.PrimaryValidation
- Property PdfExternalValidatorProof.Validations
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
- status OfficeIMO.Pdf.PdfExternalValidationStatus
- validatorName string
- diagnostic string
- profile string? = null
- executablePath string? = null
- arguments string? = null
- exitCode int? = null
- validatorVersion string? = null
- artifactSha256 string? = null
- artifactSizeBytes long? = null
- validatedAtUtc System.DateTimeOffset? = null
- warnings System.Collections.Generic.IEnumerable<string>? = null
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
- validatorName string
- diagnostic string
- profile string? = null
- exitCode int? = null
Returns
PdfExternalValidationResultpublic 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
- validatorName string
- diagnostic string
- profile string? = null
- exitCode int? = null
Returns
PdfExternalValidationResultpublic 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
- exitCode int
- validatorName string
- diagnostic string
- profile string? = null
- executablePath string? = null
- arguments string? = null
- successExitCode int = 0
Returns
PdfExternalValidationResultpublic 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
- exitCode int
- validatorName string
- validatorVersion string
- diagnostic string
- artifact byte[]
- profile string? = null
- executablePath string? = null
- arguments string? = null
- successExitCode int = 0
- warnings System.Collections.Generic.IEnumerable<string>? = null
- validatedAtUtc System.DateTimeOffset? = null
Returns
PdfExternalValidationResultpublic static PdfExternalValidationResult NotRun(PdfExternalValidatorKind validatorKind, string validatorName, string diagnostic, string? profile = null) #Creates a not-run validator result.
Parameters
- validatorKind OfficeIMO.Pdf.PdfExternalValidatorKind
- validatorName string
- diagnostic string
- profile string? = null
Returns
PdfExternalValidationResultpublic 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
- validatorName string
- validatorVersion string
- diagnostic string
- artifact byte[]
- profile string? = null
- warnings System.Collections.Generic.IEnumerable<string>? = null
- recordedAtUtc System.DateTimeOffset? = null
Returns
PdfExternalValidationResultpublic static PdfExternalValidationResult Passed(PdfExternalValidatorKind validatorKind, string validatorName, string diagnostic, string? profile = null) #Creates a passing validator result.
Parameters
- validatorKind OfficeIMO.Pdf.PdfExternalValidatorKind
- validatorName string
- diagnostic string
- profile string? = null
Returns
PdfExternalValidationResultpublic 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
- validatorName string
- validatorVersion string
- diagnostic string
- artifact byte[]
- profile string? = null
- warnings System.Collections.Generic.IEnumerable<string>? = null
- executablePath string? = null
- arguments string? = null
- exitCode int? = 0
- validatedAtUtc System.DateTimeOffset? = null
Returns
PdfExternalValidationResultInherited Methods
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.