Click one of the links to get information about our barcode CGI applications:
|
 |
PDF417 CGI parameters |
|
Our barcode CGI generators understand both GET and POST requests.
| Parameter Name |
Description |
Corresponding property of PDF417-ActiveX |
Default value |
| w |
PDF417 picture width. |
|
200 |
| h |
PDF417 picture height. |
|
100 |
| xdim |
PDF417 X-Dimension. |
This parameter makes sense only if the w and h parameters are not used. |
2 |
| data |
Sets the data that is to be encoded in the PDF417. |
DataToEncode |
1234567 |
| cmode |
PDF417 Compaction mode. Possible values: 0...3 |
CompactionMode |
0 |
| ecl |
PDF417 Error Correction Level. Possible values: 0...9 |
ErrorCorrectionLevel |
9 |
| col |
Data Columns. Possible values: 0(auto)...30 |
DataColumns |
3 |
| row |
Data Rows. Possible values: 0(auto), 3...90 |
DataRows |
0 |
| cpdf |
Compact PDF. Possible values: 0(normal PDF417) or 1(compact) |
CompactPDF |
1 |
| angle |
Orientation of the PDF417 bar code. Possible values: 0, 90, 180, 270 |
Orientation |
0 |
| quiet |
Show quiet zones. Possible values: 0(hide) or 1(show) |
QuietZone |
1 |
| alignh |
Horizontal barcode alignment. Possible values: 0...3 |
AlignH |
1 |
| alignv |
Vertical barcode alignment. Possible values: 0...3 |
AlignV |
1 |
| bcolor |
Background color. Possible values: 000000...ffffff
The color must be presented as RGB, i.e. you should specify the value ff0000 for the red color.
|
BackColor |
ffffff (white) |
| fcolor |
Foreground color. Possible values: 000000...ffffff |
ForeColor |
000000 (black) |
| y2x |
PDF417 Y to X Ratio. |
Y2XRatio |
4.0 |
| help |
Displays information about our PDF417 CGI generator. See below. |
|
|
| debug |
Displays information about the error. See below. |
|
|
|
 |
Examples |
|
If you specify the following parameters:
http://localhost/test/pdf417cgi.exe?data=HelloWorld&xdim=2&bcolor=ffff00&fcolor=0000ff
"HelloWorld" will be encoded in the PDF417 barcode, the x-dimension is 2 pixels, the background color is yellow,
the foreground color is blue. See the picture below.
To get information about the PDF417 CGI application (and also the license information), just specify the parameter help:
http://localhost/test/pdf417cgi.exe?help=1
If the web server returns an error for some reason (for example, a CGI Error for a Windows server or an Internal Server Error for Linux),
you may have specified some parameters incorrectly. Try specifying the parameters as shown below and you will get such an error.
http://localhost/test/pdf417cgi.exe?data=HelloWorld&w=1
As you can see, the width of the PDF417 image is set to 1 pixel. Of course, a PDF417 barcode image cannot have this size. To get debugging information,
add the parameter debug and you will see an error message:
http://localhost/test/pdf417cgi.exe?data=HelloWorld&w=1&debug=1
|
|