BCMaker/Documentation/DataMatrix API
DEVELOPER DOCUMENTATION

DataMatrix Generator Parameters

Configure the DataMatrix symbol format, encoding, quiet zone, alignment, colors and image dimensions using the BCMaker CGI generator.

DataMatrix / API
DataMatrix barcode example
GET /cgi-bin/dmtxcgidHTTP / HTTPS
API OVERVIEW

One request. One barcode image.

Specify the data and optional barcode settings through the BCMaker generator endpoint. The official CGI help confirms GET and POST are both accepted.

GEThttps://www.bcmaker.com/cgi-bin/dmtxcgid
Parameters listed15
Reference valuesCGI help
Barcode typeDataMatrix
01 / BASICS

Image & Data

Set encoded data and pixel sizing.

Image & Data parameters
ParameterDescriptionAccepted valuesDefault
dataInformation to encode into the DataMatrix symbol.URL-encoded text or numeric data1234567
wOutput image width.Pixel value100
hOutput image height.Pixel value100
xdimSize of a DataMatrix module; used when image dimensions are not provided.Pixel size; ignored when w and h are used5
02 / ENCODING

Symbol & Encoding

Control DataMatrix dimensions and data encoding method.

Symbol & Encoding parameters
ParameterDescriptionAccepted valuesDefault
fmtPreferred DataMatrix format / matrix dimensions.Integer 0–300
modeDataMatrix encoding mode.Integer 0–60
03 / APPEARANCE

Appearance & Colors

Control rotation, quiet zones, alignment and colors.

Appearance & Colors parameters
ParameterDescriptionAccepted valuesDefault
angleRotation of the DataMatrix code.0, 90, 180, 270 degrees0
quietDraw a quiet zone around the symbol.0 = Hide; 1 = Show1
qsizeQuiet zone size.Nonnegative value (0 and above)1
alignhPosition the barcode horizontally in the image.Integer 0–31
alignvPosition the barcode vertically in the image.Integer 0–31
bcolorBackground color expressed as an RGB hex value.000000–ffffff, no # prefixffffff
fcolorColor of the DataMatrix modules.000000–ffffff, no # prefix000000
04 / UTILITIES

Help & Debug

Built-in CGI diagnostics.

Help & Debug parameters
ParameterDescriptionAccepted valuesDefault
helpReturns documentation for DataMatrix CGI parameters.help=1—
debugProvides diagnostic details for processing errors.Example: debug=1—
EXAMPLE REQUEST

Generate a DataMatrix barcode

This example encodes 1234567 and includes the settings from the BCMaker demonstration request.

DataMatrix • GET
https://www.bcmaker.com/cgi-bin/dmtxcgid?data=1234567&fmt=0&mode=0&angle=0&quiet=1&alignh=1&alignv=1&bcolor=ffffff&fcolor=000000&qsize=1&xdim=5&w=&h=&submit=+Generate+DataMatrix+&debug=1
GOOD TO KNOW

Implementation Notes

01

Automatic sizing

The help specifies that xdim is meaningful only if w and h are not used. A blank w= and h= appears in the demo URL.

02

Format and mode

The server lists numeric ranges for fmt and mode but does not define the meaning of each individual value on its help page.

03

Quiet zone

quiet switches clear margins on or off; qsize controls their size.

04

Server defaults

Defaults are taken from the DataMatrix CGI help page. They may differ from individual demo form presets.

Reference: Official CGI Help. CGI help defaults.

Ready to generate a barcode?

Open the BCMaker generator and choose DataMatrix.

Go to Generator