API Reference
PdfExternalValidationResult
Result from a caller- or CI-run external PDF compliance validator.
Inheritance
- Object
- PdfExternalValidationResult
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- 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
Constructors
public PdfExternalValidationResult(PdfExternalValidatorKind validatorKind, PdfExternalValidationStatus status, String validatorName, String diagnostic, String profile = null, String executablePath = null, String arguments = null, Nullable<Int32> exitCode = null, String validatorVersion = null, String artifactSha256 = null, Nullable<Int64> artifactSizeBytes = null, Nullable<DateTimeOffset> validatedAtUtc = null, IEnumerable<String> warnings = null) #Creates an external validation result.
Parameters
- validatorKind OfficeIMO.Pdf.PdfExternalValidatorKind
- status OfficeIMO.Pdf.PdfExternalValidationStatus
- validatorName System.String
- diagnostic System.String
- profile System.String = null
- executablePath System.String = null
- arguments System.String = null
- exitCode System.Nullable{System.Int32} = null
- validatorVersion System.String = null
- artifactSha256 System.String = null
- artifactSizeBytes System.Nullable{System.Int64} = null
- validatedAtUtc System.Nullable{System.DateTimeOffset} = null
- warnings System.Collections.Generic.IEnumerable{System.String} = null
Methods
public static PdfExternalValidationResult Error(PdfExternalValidatorKind validatorKind, String validatorName, String diagnostic, String profile = null, Nullable<Int32> exitCode = null) #PdfExternalValidationResultCreates a validator error result.
Parameters
- validatorKind OfficeIMO.Pdf.PdfExternalValidatorKind
- validatorName System.String
- diagnostic System.String
- profile System.String = null
- exitCode System.Nullable{System.Int32} = null
public static PdfExternalValidationResult Failed(PdfExternalValidatorKind validatorKind, String validatorName, String diagnostic, String profile = null, Nullable<Int32> exitCode = null) #PdfExternalValidationResultCreates a failing validator result.
Parameters
- validatorKind OfficeIMO.Pdf.PdfExternalValidatorKind
- validatorName System.String
- diagnostic System.String
- profile System.String = null
- exitCode System.Nullable{System.Int32} = null
public static PdfExternalValidationResult FromExitCode(PdfExternalValidatorKind validatorKind, Int32 exitCode, String validatorName, String diagnostic, String profile = null, String executablePath = null, String arguments = null, Int32 successExitCode = 0) #PdfExternalValidationResultCreates 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 System.Int32
- validatorName System.String
- diagnostic System.String
- profile System.String = null
- executablePath System.String = null
- arguments System.String = null
- successExitCode System.Int32 = 0
public static PdfExternalValidationResult FromExitCodeForArtifact(PdfExternalValidatorKind validatorKind, Int32 exitCode, String validatorName, String validatorVersion, String diagnostic, Byte[] artifact, String profile = null, String executablePath = null, String arguments = null, Int32 successExitCode = 0, IEnumerable<String> warnings = null, Nullable<DateTimeOffset> validatedAtUtc = null) #PdfExternalValidationResultCreates an exit-code result bound to the exact supplied PDF bytes.
Parameters
- validatorKind OfficeIMO.Pdf.PdfExternalValidatorKind
- exitCode System.Int32
- validatorName System.String
- validatorVersion System.String
- diagnostic System.String
- artifact System.Byte[]
- profile System.String = null
- executablePath System.String = null
- arguments System.String = null
- successExitCode System.Int32 = 0
- warnings System.Collections.Generic.IEnumerable{System.String} = null
- validatedAtUtc System.Nullable{System.DateTimeOffset} = null
public static PdfExternalValidationResult NotRun(PdfExternalValidatorKind validatorKind, String validatorName, String diagnostic, String profile = null) #PdfExternalValidationResultCreates a not-run validator result.
Parameters
- validatorKind OfficeIMO.Pdf.PdfExternalValidatorKind
- validatorName System.String
- diagnostic System.String
- profile System.String = null
public static PdfExternalValidationResult NotRunForArtifact(PdfExternalValidatorKind validatorKind, String validatorName, String validatorVersion, String diagnostic, Byte[] artifact, String profile = null, IEnumerable<String> warnings = null, Nullable<DateTimeOffset> recordedAtUtc = null) #PdfExternalValidationResultCreates a not-run result associated with an intended exact PDF artifact.
Parameters
- validatorKind OfficeIMO.Pdf.PdfExternalValidatorKind
- validatorName System.String
- validatorVersion System.String
- diagnostic System.String
- artifact System.Byte[]
- profile System.String = null
- warnings System.Collections.Generic.IEnumerable{System.String} = null
- recordedAtUtc System.Nullable{System.DateTimeOffset} = null
public static PdfExternalValidationResult Passed(PdfExternalValidatorKind validatorKind, String validatorName, String diagnostic, String profile = null) #PdfExternalValidationResultCreates a passing validator result.
Parameters
- validatorKind OfficeIMO.Pdf.PdfExternalValidatorKind
- validatorName System.String
- diagnostic System.String
- profile System.String = null
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, Nullable<Int32> exitCode = 0, Nullable<DateTimeOffset> validatedAtUtc = null) #PdfExternalValidationResultCreates a passing result bound to the exact supplied PDF bytes.
Parameters
- validatorKind OfficeIMO.Pdf.PdfExternalValidatorKind
- validatorName System.String
- validatorVersion System.String
- diagnostic System.String
- artifact System.Byte[]
- profile System.String = null
- warnings System.Collections.Generic.IEnumerable{System.String} = null
- executablePath System.String = null
- arguments System.String = null
- exitCode System.Nullable{System.Int32} = 0
- validatedAtUtc System.Nullable{System.DateTimeOffset} = null
Inherited 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 Nullable<Int32> 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 Nullable<Int64> ArtifactSizeBytes { get; } #Size of the exact validated PDF artifact, in bytes.
public Nullable<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 Boolean HasArtifactBinding { get; } #True when this result identifies an exact PDF artifact by SHA-256 and byte length.