DrawGS1DataBarExpandedA
Small Business、條碼
需要 Small Business 版本。在 Delphi、C++Builder 與 Lazarus 程式碼中,請以 TPDFlibSmallBusiness(PDFlibSmallBusiness 單元)或 TPDFlibEnterprise 建立程式庫;Small Business 與 Enterprise DLL 及 ActiveX 組建原樣提供。Single 版本保留此方法,方法會傳回 0,並將 LastErrorCode 設為 901(PDFLIB_ERROR_SMALLBUSINESS_REQUIRED)
描述
結尾的 A 表示 ANSI(char)DLL 進入點;ActiveX/COM 介面只提供 Unicode 形式。行為與 DrawGS1DataBarExpanded 完全相同,字串引數則依目前的 SetAnsiMode 字碼頁解讀
語法
Delphi
Function DLDrawGS1DataBarExpandedA(InstanceID: Integer; Left: Double; Top: Double; Width: Double; Height: Double; Text: PAnsiChar): Integer;
DLL
int DLDrawGS1DataBarExpandedA(int InstanceID, double Left, double Top, double Width, double Height, const char* Text);
以括號括起的 GS1 應用程式識別碼繪製 GS1 DataBar Expanded 符號;後端會驗證 AI 結構與酬載限制
PDF.DrawGS1DataBarExpanded(50, 700, 300, 60,
'[01]09506000134352[10]ABC123');
成功時傳回 1,失敗時傳回 0;Professional barcodes 說明版本需求、部署與錯誤