DrawRMQRCode

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 rectangular Micro QR Code using the professional encoder runtime

Syntax

Delphi

Function TPDFlib.DrawRMQRCode(Left, Top, Width, Height: Double; Const Text: WideString; ECLevel, Version: Integer): Integer; Virtual;

ActiveX

Function PDFlib::DrawRMQRCode(Left As Double, Top As Double, Width As Double, Height As Double, Text As String, ECLevel As Long, Version As Long) As Long

DLL

int DLDrawRMQRCode(int InstanceID, double Left, double Top, double Width, double Height, const wchar_t* Text, int ECLevel, int Version);
int DLDrawRMQRCodeA(int InstanceID, double Left, double Top, double Width, double Height, const char* Text, int ECLevel, int Version);

Parameters

LeftHorizontal coordinate of the lower-left corner of the symbol box, in the current measurement units
TopVertical coordinate of the lower-left corner of the symbol box, in the current measurement units
WidthWidth of the requested box in the current measurement units; must be positive and finite
HeightHeight of the requested box in the current measurement units; must be positive and finite
TextrMQR payload; data that does not fit the selected size is rejected
ECLevelError-correction level: 0 for M or 1 for H
Version0 selects automatic sizing; 1 through 32 requests a fixed rectangular version

Return values

1The symbol was encoded and drawn on the selected page
0Nothing 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

ECLevel is 0 for M or 1 for H; Version is 0 for automatic sizing or 1 through 32 for a fixed rectangular size; the backend rejects data that does not fit

The selected symbol is fitted proportionally within the box in the current measurement units; the caller chooses the position and size

PDF.DrawRMQRCode(50, 700, 180, 50, 'Shipment 12345', 0, 0);

Returns 1 on success or 0 on failure; Professional barcodes describes edition requirements, deployment and errors