RunValidationPipelineTask

Compliance, Performance

Requires the Enterprise edition — in Delphi, C++Builder and Lazarus code create the library as TPDFlibEnterprise (unit PDFlibEnterprise); the Enterprise DLL and ActiveX builds provide it unchanged; other editions keep the method, which returns 0, an empty string or False and sets LastErrorCode to 900 (PDFLIB_ERROR_ENTERPRISE_REQUIRED)

PDF/UA reader profile selection

PDF/UA checks select part 2 when XMP identifies pdfuaid:part=2 and otherwise retain the part 1 checks; legacy PDF/UA-1 checks described here are not implied to apply to part 2

The PDF/UA-2 profile implements core identification, namespace, role and structure checks; structured reports use PDF/UA-2 and ISO 14289-2 and disclose fullCertification=false and unverified scope

Use CheckFilePDFUACompliance or RunPDFUAValidationPipelineTask to force a target part and GetPDFUAReadValidationCoverageJSON to inspect capability limits

Description

Runs one compliance audit against the parsed reader and object cache retained by a validation pipeline

Syntax

Delphi

Function TPDFlib.RunValidationPipelineTask(PipelineID, ComplianceTest, Options: Integer): Integer; Virtual;

DLL

int DLRunValidationPipelineTask(int InstanceID, int PipelineID, int ComplianceTest, int Options);

ActiveX

Function PDFlib::RunValidationPipelineTask(PipelineID As Long, ComplianceTest As Long, Options As Long) As Long

Parameters

PipelineIDIdentifier returned by BeginValidationPipeline
ComplianceTest1 for PDF/A, 2 for PDF/UA, 3 for PDF/X, 4 for PDF/VT-3, 5 for PDF/R-1, 6 for PDF/VCR-1 or 7 for PDF/E-1
Options0 collects all findings; 1 stops the selected audit at its first finding

Return values

0The selected audit reported no findings, or the pipeline or task identifier is invalid
Positive valueString-list identifier containing findings; release it with ReleaseStringList

Remarks

Repeated tasks reuse the same initial parse and any lazily loaded objects already present in the pipeline cache

The PDF/R task checks the final marker, version and encryption profile, object generations, catalog and page restrictions, content operators, strip order and coverage, colour and sample consistency, raw byte lengths, JPEG headers and CCITT Group 4 decodability

The PDF/VCR task checks the PDF/X foundation, identification metadata, direct template root, field declarations, page selection and every replacement placeholder while reusing the pipeline parser and object cache

The PDF/E task checks identification and lifecycle metadata, trailer identifiers, encryption, output intents, colour spaces, content programs, fonts, annotations, forms, actions and restricted stream features while reusing the pipeline parser and object cache

See also

CheckFileCompliance, CreateValidationPipelineReport, SetPDFRMode, SetPDFVCRMode, GetPDFVCRManifest, SetPDFEMode, GetPDFEDiagnostics