DrawGS1DataBarExpandedA
Small Business, barcodes
Requires the Small Business edition — in Delphi, C++Builder and Lazarus code create the library as TPDFlibSmallBusiness (unit PDFlibSmallBusiness) or TPDFlibEnterprise; the Small Business and Enterprise DLL and ActiveX builds provide it unchanged; the Single edition keeps the method, which returns 0 and sets LastErrorCode to 901 (PDFLIB_ERROR_SMALLBUSINESS_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 DrawGS1DataBarExpanded and string arguments are interpreted using the current SetAnsiMode code page
Syntax
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);
Draws a GS1 DataBar Expanded symbol from bracketed GS1 application identifiers; the backend validates AI structure and payload constraints
PDF.DrawGS1DataBarExpanded(50, 700, 300, 60,
'[01]09506000134352[10]ABC123');
Returns 1 on success or 0 on failure; Professional barcodes describes edition requirements, deployment and errors