TPDFlibProfessionalBarcodeDraw

Data types, barcodes

Description

Encodes and draws one professional barcode symbol for the draw methods.

TPDFlib declares the public methods and a protected dispatch method for drawing the professional barcode symbols that need the encoder runtime. The edition class supplies the implementation as a callback of this type. A plain TPDFlib instance supplies none, so the call returns the documented empty result and sets LastErrorCode to PDFLIB_ERROR_SMALLBUSINESS_REQUIRED. Application code never declares, assigns or calls a value of this type.

Syntax

Delphi

TPDFlibProfessionalBarcodeDraw = Function(Left, Top, Width, Height: Double;
  Format: Integer; Const Text, Primary: WideString; Option1, Option2: Integer): Integer Of Object;

Parameters

Left, TopLower-left corner of the symbol box, in the current measurement units
Width, HeightSize of the requested symbol box, in the current measurement units
FormatSymbol to draw, passed as a one-based number: 1 rMQR, 2 GS1 DataBar Limited, 3 GS1 DataBar Expanded, 4 MaxiCode
TextPayload to encode; for MaxiCode the primary message
PrimaryStructured postal message for MaxiCode in modes 2 and 3; empty for every other symbol
Option1, Option2Symbol options. rMQR receives the error-correction level and the version, MaxiCode receives the mode and 0, the DataBar symbols receive 0 and 0

Return values

1The symbol was encoded and drawn on the selected page
0Nothing was drawn; the public method reports the reason through LastErrorCode

See also

TPDFlibProfessionalBarcode, DrawRMQRCode, DrawGS1DataBarExpanded, DrawMaxiCode