GetBarcodeReaderCapabilitiesJSONA
Barcode recognition, capabilities
Description
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to GetBarcodeReaderCapabilitiesJSON and string arguments are interpreted using the current SetAnsiMode code page
Inspect built-in barcode formats, limits and optional Windows backend availability
Syntax
Delphi
Function DLGetBarcodeReaderCapabilitiesJSONA(InstanceID: Integer): PAnsiChar;
DLL
const char* DLGetBarcodeReaderCapabilitiesJSONA(int InstanceID);
ActiveX
Function PDFlib::GetBarcodeReaderCapabilitiesJSON() As StringRemarks
Returns a JSON description of portable recognition and the availability of the optional Windows reader backend, without changing the latest error
Portable QR recognition supports versions 1 to 40, L/M/Q/H Reed-Solomon correction, numeric, alphanumeric and byte payloads, first-position FNC1 and ECI 3 (Latin-1), 26 (UTF-8) and 27 (ASCII); unsupported modes or encodings are rejected instead of returning partial text
QR sampling uses affine finder triples and supports quarter turns, mild rotation and mirrored symbols; strong perspective distortion, severe uneven lighting and unsupported payload modes are outside this finite profile
Portable Aztec recognition supports Compact layers 1 to 4 and Full-Range layers 1 to 32, with reference-grid removal, mode-message and payload correction, table shifts/latches, binary segments, FNC1 and the same three ECI assignments; sampling is axis-aligned with quarter-turn and inversion support
The aztec capability object reports fullRange: true, fullRangeLayers: [1,32] and maxCorrectedWords: 64; payload correction verifies all parity words but rejects damage requiring more than 64 corrected codewords, even when the symbol contains additional parity capacity
Aztec sampling reads the corrected mode message before choosing the full symbol dimensions; square-ring verification keeps ordinary payload and reference-grid patterns from filling the finite finder-candidate list
Portable image dimensions are at most 8192 pixels per axis; QR/Aztec/Data Matrix scanning allows at most 16777216 pixels; no automatic downscaling is performed, so use a lower DPI or smaller page region for larger requests
QR/Aztec scanning retains 64 finder candidates per kind and 256 decode attempts
The dataMatrix capability object describes the 30 standard ECC200 sizes: square symbols from 10 to 144 modules and the six standard rectangular sizes, including multi-region layouts and independently verified Reed-Solomon blocks
Data Matrix payload decoding supports ASCII, C40, Text, ANSI X12, EDIFACT, Base256, FNC1, Macro 05/06 and ECI 3, 26 and 27; binary Base256 values map byte-for-byte to Latin-1 unless an explicit supported ECI selects another encoding; null and control characters are retained
Unknown modes or ECI assignments, structured append, reader programming, malformed payloads, invalid padding and uncorrectable codewords reject the symbol without returning partial text; DMRE sizes beyond the original six rectangles are outside this profile
Data Matrix sampling locates connected borders under a global two-cluster luminance threshold and supports axis-aligned symbols, quarter turns, inversion and multiple separate symbols; perspective, arbitrary-angle rotation, severe border damage and connected background artwork remain outside this finite geometry profile
Data Matrix retains at most 64 component candidates per polarity, 256 corrected-decode attempts and 8388608 module samples per call; a result reports ECC200, orientation, inversion, ECI use and its four image-space bounds
Existing Code 128, Code 39, EAN-8, EAN-13 and UPC-A coverage remains available
On Windows, the availability query follows the existing backend search policy and caches its load attempt; other systems report that backend as unavailable and use native Pascal recognition
Set PDF_BARCODE_BUILTIN_ONLY (64) in DetectPageBarcodesJSON to select the portable profile on every platform; otherwise Windows keeps its optional backend preference
The capability getter is exposed by native Delphi, Windows DLL, macOS Dylib and ActiveX IPDFlibrary16; the existing ActiveX detection method accepts the built-in option without changing its interface
DLL strings belong to the instance and are replaced by its next string-returning call; the A variant uses the configured ANSI encoding mode
ActiveX exposes this method through IPDFlibrary16 and the default dispatch interface; Pascal Automation callers can use CoPDFlibrary.CreateConversionTools
The macOS Dylib exposes the same wide and A C entry points shown above using the C calling convention; string pointers belong to the instance and must be copied before the next string-returning call, and A variants follow the configured ANSI or UTF-8 mode