DrawGS1DataBarLimitedA

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 DrawGS1DataBarLimited and string arguments are interpreted using the current SetAnsiMode code page

Syntax

Delphi

Function DLDrawGS1DataBarLimitedA(InstanceID: Integer; Left: Double; Top: Double; Width: Double; Height: Double; Text: PAnsiChar): Integer;

DLL

int DLDrawGS1DataBarLimitedA(int InstanceID, double Left, double Top, double Width, double Height, const char* Text);

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