DrawGS1DataBarExpanded

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

Draws a GS1 DataBar Expanded barcode into the requested box on the selected page, encoding a bracketed GS1 application identifier string such as [01]09506000134352[10]ABC123

Syntax

Delphi

Function TPDFlib.DrawGS1DataBarExpanded(Left, Top, Width, Height: Double; Const Text: WideString): Integer; Virtual;

ActiveX

Function PDFlib::DrawGS1DataBarExpanded(Left As Double, Top As Double, Width As Double, Height As Double, Text As String) As Long

DLL

int DLDrawGS1DataBarExpanded(int InstanceID, double Left, double Top, double Width, double Height, const wchar_t* Text);
int DLDrawGS1DataBarExpandedA(int InstanceID, double Left, double Top, double Width, double Height, const char* Text);

Parameters

LeftHorizontal coordinate of the lower-left corner of the symbol box, in the current measurement units
TopVertical coordinate of the lower-left corner of the symbol box, in the current measurement units
WidthWidth of the requested box in the current measurement units; must be positive and finite
HeightHeight of the requested box in the current measurement units; must be positive and finite
TextBracketed GS1 application identifier string such as [01]09506000134352[10]ABC123; the backend validates AI structure and payload constraints

Return values

1The symbol was encoded and drawn on the selected page
0Nothing was drawn; LastErrorCode is 904 for invalid input or geometry, 903 when the encoder runtime is unavailable or incompatible, or 901 when the instance does not provide the Small Business edition

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