DetectPageBarcodesJSONA
条形码识别、文档检查、渲染
描述
DetectPageBarcodesJSON 的 ANSI 变体
字符串参数按 ANSI 文本接受,其余行为与宽字符串入口点完全相同
语法
Delphi
Function TPDFlib.DetectPageBarcodesJSON(Page: Integer;
Left, Top, Width, Height, DPI: Double; Formats: Integer= 0;
Options: Integer= 0; MaxResults: Integer= 32): WideString;ActiveX
Function PDFlib::DetectPageBarcodesJSON(Page As Long,
Left As Double, Top As Double, Width As Double, Height As Double,
DPI As Double, Formats As Long, Options As Long,
MaxResults As Long) As StringDLL
const wchar_t* DLDetectPageBarcodesJSON(int InstanceID, int Page,
double Left, double Top, double Width, double Height, double DPI,
int Formats, int Options, int MaxResults);
const char* DLDetectPageBarcodesJSONA(int InstanceID, int Page,
double Left, double Top, double Width, double Height, double DPI,
int Formats, int Options, int MaxResults);返回值
返回一个 JSON 对象,其中包含页面、有效 DPI、请求区域、结果数量,以及带有 formatName、text、内容类型、符号体系标识符、纠错级别、方向、有效性标志、四个页面空间角点和边界的结果对象
验证、渲染、后端加载或识别失败时返回空字符串
备注
该方法仅将请求区域渲染为受限的自上而下 BGR 位图,并在返回前恢复此前选定的页面
根据进程架构,将 PDFlibBarcode32.dll 或 PDFlibBarcode64.dll 部署在主机可执行文件、PDFlib DLL 或 ActiveX 模块旁;PDFLIB_BARCODE_READER 可指定替代的绝对后端路径
页面、几何参数、蒙版、分辨率或限制无效时,LastErrorCode 为 115;渲染、后端或识别失败时为 519