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 LongDLL
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
| Left | Horizontal coordinate of the lower-left corner of the symbol box, in the current measurement units |
|---|---|
| Top | Vertical coordinate of the lower-left corner of the symbol box, in the current measurement units |
| Width | Width of the requested box in the current measurement units; must be positive and finite |
| Height | Height of the requested box in the current measurement units; must be positive and finite |
| Text | Bracketed GS1 application identifier string such as [01]09506000134352[10]ABC123; the backend validates AI structure and payload constraints |
Return values
| 1 | The symbol was encoded and drawn on the selected page |
|---|---|
| 0 | Nothing 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