DrawGS1DataBarLimited
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 Limited barcode into the requested box on the selected page, encoding a 13-digit payload or a 14-digit GTIN that begins with 0 or 1
Syntax
Delphi
Function TPDFlib.DrawGS1DataBarLimited(Left, Top, Width, Height: Double; Const Text: WideString): Integer; Virtual;ActiveX
Function PDFlib::DrawGS1DataBarLimited(Left As Double, Top As Double, Width As Double, Height As Double, Text As String) As LongDLL
int DLDrawGS1DataBarLimited(int InstanceID, double Left, double Top, double Width, double Height, const wchar_t* Text);
int DLDrawGS1DataBarLimitedA(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 | Compressed payload: either 13 digits or a 14-digit GTIN beginning with 0 or 1; the check digit must be valid and other leading digits are rejected |
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 Limited symbol from a 13-digit payload or a valid 14-digit GTIN beginning with 0 or 1; invalid check digits and unsupported leading digits are rejected
PDF.DrawGS1DataBarLimited(50, 700, 180, 60, '09506000134352');
Returns 1 on success or 0 on failure; Professional barcodes describes edition requirements, deployment and errors