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, Top | Lower-left corner of the symbol box, in the current measurement units |
|---|---|
| Width, Height | Size of the requested symbol box, in the current measurement units |
| Format | Symbol to draw, passed as a one-based number: 1 rMQR, 2 GS1 DataBar Limited, 3 GS1 DataBar Expanded, 4 MaxiCode |
| Text | Payload to encode; for MaxiCode the primary message |
| Primary | Structured postal message for MaxiCode in modes 2 and 3; empty for every other symbol |
| Option1, Option2 | Symbol 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
| 1 | The symbol was encoded and drawn on the selected page |
|---|---|
| 0 | Nothing was drawn; the public method reports the reason through LastErrorCode |
See also
TPDFlibProfessionalBarcode, DrawRMQRCode, DrawGS1DataBarExpanded, DrawMaxiCode