GetWCAGMappingJSONA
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
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to GetWCAGMappingJSON and string arguments are interpreted using the current SetAnsiMode code page
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 DLGetWCAGMappingJSONA(InstanceID: Integer): PAnsiChar;
DLL
const char* DLGetWCAGMappingJSONA(int InstanceID);
Return values
| JSON | An object with standard, scope, mappings (rule arrays to criteria) and notCovered fields |
|---|
See also
GetPDFUAReadValidationCoverageJSON, GetPDFAReadValidationCoverageJSON