Lexmark MX722 Forms and Bar Code Card P4.2 Technical Reference - Page 81

QR Code arguments, Range, Default, value, Description, Default value

Page 81 highlights

Lexmark Confidential until announced PostScript emulation 81 Key Type Range Default Description value /ErrorPercent int 0%-400% 0% Optional. This key designates the error correction levels by percentage. Values beyond the defined range cause a rangecheck error. A valid nonzero value overrides the /ErrorLevel value. A zero value causes the /ErrorLevel value to be used. If a valid nonzero percentage is specified, then the ECC level is computed by selecting one of the /ErrorLevel values. The ECC level selected is the one that best matches the number generated by multiplying the specified percentage by the number of data codewords in the symbol. For example, if there are 20 data codewords in a symbol, and /ErrorPercent is specified at 100%, then the /ErrorLevel selected is the one closest to 20, or /ErrorLevel 3 (16 error codewords). For the same 20 data codewords, and an /ErrorPercent of 35%, /ErrorLevel 2 is selected because it is closest to 20 x 0.35, or 7. This example prints a PDF417 bar code with the following settings: Sample01234 >barcodeshow %This is the data to be encoded. %Specifies PDF417 symbology. %Rows and columns determined by /AspectRatio. %Height/width ratio is 1/2. %Smallest element width in 600th units. %Smallest element width is 20/600ths. %Bar height is 40/600ths. %Number of error code words is 8. %Because they are not specified, /Truncated. %Defaults to %false (no ;truncation) and QuietZone defaults to [150 150]. QR Code arguments Key Type /Symbolog name y Range N/A /Units /Model /ECC name name name /300ths /600ths /1200ths /Model1 /Model2 /L /M /Q /H Default value N/A /600ths /Model2 /M Description Required. Identifies the bar code symbology. Optional. Optional. Determines the model of the QR Code symbology. Optional. Determines the ECC level.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146

Key
Type
Range
Default
value
Description
/ErrorPercent
int
0%–400%
0%
Optional.
This key designates the error correction levels by
percentage. Values beyond the defined range cause
a rangecheck error. A valid nonzero value overrides
the /ErrorLevel value. A zero value causes
the /ErrorLevel value to be used.
If a valid nonzero percentage is specified, then the ECC
level is computed by selecting one of the /ErrorLevel
values. The ECC level selected is the one that best
matches the number generated by multiplying the
specified percentage by the number of data
codewords in the symbol.
For example, if there are 20 data codewords in a
symbol, and /ErrorPercent is specified at 100%, then
the /ErrorLevel selected is the one closest to 20,
or /ErrorLevel 3 (16 error codewords).
For the same 20 data codewords, and an /ErrorPercent
of 35%, /ErrorLevel 2 is selected because it is closest
to 20 x 0.35, or 7.
This example prints a PDF417 bar code with the following settings:
Sample01234
<<
/Symbology /PDF417
/Type 1
/AspectRatio 0.5
/Units /600ths
/ModuleWidth 20
/Height 2
/ErrorLevel 2
>>barcodeshow
%This is the data to be encoded.
%Specifies PDF417 symbology.
%Rows and columns determined by /AspectRatio.
%Height/width ratio is 1/2.
%Smallest element width in 600th units.
%Smallest element width is 20/600ths.
%Bar height is 40/600ths.
%Number of error code words is 8.
%Because they are not specified, /Truncated.
%Defaults to %false (no ;truncation) and /.
%QuietZone defaults to [150 150].
QR Code arguments
Key
Type
Range
Default value
Description
/Symbolog
y
name
N/A
N/A
Required.
Identifies the bar code symbology.
/Units
name
/300ths
/600ths
/1200ths
/600ths
Optional.
/Model
name
/Model1
/Model2
/Model2
Optional.
Determines the model of the QR Code symbology.
/ECC
name
/L
/M
/Q
/H
/M
Optional.
Determines the ECC level.
Lexmark Confidential until announced
PostScript emulation
81