RunPDFUAValidationPipelineTask
Compliance, Document inspection
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)
Description
Audit a shared parsed PDF using an explicit PDF/UA reader profile
Syntax
Delphi
Function TPDFlib.RunPDFUAValidationPipelineTask(PipelineID, TargetPart, Options: Integer): Integer; Virtual;DLL
int DLRunPDFUAValidationPipelineTask(int InstanceID, int PipelineID, int TargetPart, int Options);ActiveX
Function PDFlib::RunPDFUAValidationPipelineTask(PipelineID As Long, TargetPart As Long, Options As Long) As LongParameters
| PipelineID | Live handle returned by BeginValidationPipeline |
|---|---|
| TargetPart | 0 auto-detects the part from XMP and selects PDF/UA-2 only when pdfuaid:part=2 is present, 1 forces PDF/UA-1, 2 forces PDF/UA-2; values outside 0..2 are rejected |
| Options | 1 stops the audit at the first critical violation; any other value continues and collects every detected issue |
Return values
| Handle | A nonzero issue-list handle holding NNNNN description lines; release it with ReleaseStringList |
|---|---|
| 0 | The implemented checks reported no issue, or the pipeline handle or target part was invalid; LastErrorCode is 401 for an invalid request |
Remarks
TargetPart=0 selects part 2 only when XMP identifies pdfuaid:part=2; otherwise it selects part 1, 1 forces PDF/UA-1 and 2 forces PDF/UA-2
PDF/UA-2 checks cover identification part, revision and prefix, effective PDF 2.0 version, metadata title, marked status, display title, namespace references, role resolution, Document roots, parent links, and bounded tree traversal
A pass means no problems were found by the implemented checks; content tagging, reading order, fonts, annotations, language, alternative descriptions, MathML, and human accessibility review remain outside this core profile
Use a live handle from BeginValidationPipeline; selecting multiple target parts reuses the retained reader and object cache
The return and ownership rules match CheckFilePDFUACompliance; invalid pipelines or targets set LastErrorCode=401, and reader failures produce issue 10059 instead of passing without diagnostics
See also
CheckFilePDFUACompliance, GetPDFUAReadValidationCoverageJSON