- width, height = gcx:barcode("PDF417", x, y, module_width, module_height, text [, param])
- width, height = gcx:barcodesize("PDF417", x, y, module_width, module_height, text [, param])
- width, height = gfx.barcodesize("PDF417", x, y, module_width, module_height, text [, param])
SYNOPSIS
DESCRIPTION
Draws a PDF417 code at the coordinates x, y. This is a stacked linear barcode.
PDF417 supports numeric, ASCII and full binary. It has eight levels of error correction information. With higher ecc level, the barcode grows bigger, but it becomes more robust against dirt and other obstructions.
The optional param parameter table can be used to control the barcode generation. The table can have the fields:
error_level | Force the error level between 1 and 8. |
rows | Force the number of generated rows. |
columns | Force the number of generated columns. |
The parameters module_width and module_height specify the size of one bar element. The element must be at least three times higher than wide. For 200 dpi printers, use at least 3,9.
RETURN VALUE
On success, returns the width and height of the resulting barcode in pixels. If the barcode cannot be drawn
due to invalid parameters, returns nil, nil.