GetPDFUAReadValidationCoverageJSON
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
Inspect PDF/UA reader capabilities and their unverified scope
Syntax
Delphi
Function TPDFlib.GetPDFUAReadValidationCoverageJSON(TargetPart: Integer): WideString; Virtual;DLL
const wchar_t* DLGetPDFUAReadValidationCoverageJSON(int InstanceID, int TargetPart);
const char* DLGetPDFUAReadValidationCoverageJSONA(int InstanceID, int TargetPart);ActiveX
Function PDFlib::GetPDFUAReadValidationCoverageJSON(TargetPart As Long) As String
Parameters
| TargetPart | 0 reports the auto-detect profile, 1 the PDF/UA-1 profile and 2 the PDF/UA-2 profile; values outside 0..2 are rejected |
|---|
Return values
| JSON | A capability object with standard, part, fullCertification, coverage, checked, unverified and, for part 2, limits fields |
|---|---|
| Error JSON | A target part outside 0..2 sets LastErrorCode to 401 and returns a status error object |
Remarks
Returns a static capability description for target 0, 1 or 2, rather than the result of the latest document check
Part 2 reports checked, unverified and traversal limits (covering identification, effective PDF version, metadata title, /Marked, /DisplayDocTitle, namespaces, role maps, Document root, parent links, tree cycles, H/Note roles, font embedding and /ToUnicode, page annotations and form widgets, BCP 47 /Lang tags, and Figure /Alt or /ActualText descriptions); fullCertification is always false, including when the implemented checks pass
The reader checks the syntax and ordering of BCP 47 language subtags, including private-use and grandfathered tags. It does not check subtag registration in the IANA registry
The PDF/UA-1 language audit resolves marked-content property lists through inherited page resources and uses the language of the owning structure element for alternative text
The limits are 256 structure levels, 100000 structure objects, and 256 role-map hops; exceeding a limit fails validation instead of silently dropping nodes
Invalid targets return error JSON and set LastErrorCode=401; invalid DLL instances return a null pointer, wide DLL results are instance-owned, and A results contain UTF-8 JSON
Shared form evidence in PDF/UA
PDF/UA-1 and PDF/UA-2 reader checks reuse the bounded ISO 32000 field-schema evidence for required and inherited entries, flags, choice membership and index precedence, supported button states and qualified logical appearance text; automatic part selection and shared validation pipelines use the same checks
Finding 00139 remains a proven base-format violation and 00140 remains warning/incomplete; an unrelated accessibility or archival error does not erase incomplete evidence, and an incomplete finding does not downgrade a separately proven error
These shared checks do not import PDF/A-only restrictions on actions or NeedAppearances into PDF/UA; approved PDF 2.0 pushbutton value behavior applies to PDF/UA-2, while PDF/UA-1 retains its base-edition rules
Direct catalog AcroForm dictionaries remain resolvable after reader-side promotion into the document object table; the audit does not invent an unresolved-reference failure or lose the applicable field checks
The coverage JSON exposes checkedFormEvidence, incompleteOn and formLimits for explicit and automatic targets; these are capability declarations rather than per-document results, and fullCertification remains false because logical reading order, actual content/artifact classification, semantic labels and interactive assistive-technology behavior require separate review