GetWCAGMappingJSON

Compliance and validation

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

Returns the static cross-reference of the PDF/UA audit rules to the WCAG 2.1 success criteria they evidence, following the PDF Association's PDF/UA and WCAG cross-reference; Section 508 (2017) incorporates WCAG AA, so the same criteria apply

The response also names the criteria a document-level file audit cannot decide (contrast, colour use, media alternatives, focus and interaction), because a file free of mapped rule violations is not automatically WCAG-conformant

Syntax

Delphi

Function TPDFlib.GetWCAGMappingJSON: WideString; Virtual;

ActiveX

Function PDFlib::GetWCAGMappingJSON() As String

DLL

const wchar_t* DLGetWCAGMappingJSON(int InstanceID);
const char* DLGetWCAGMappingJSONA(int InstanceID);

Return values

JSONAn object with standard, scope, mappings (rule arrays to criteria) and notCovered fields

See also

GetPDFUAReadValidationCoverageJSON, GetPDFAReadValidationCoverageJSON