Lexmark MS811 Forms and Bar Code Card Technical Reference Guide - Page 97

Symbology /PDF417, This example prints a PDF417 bar code with the following settings

Page 97 highlights

Key /QuietZone Type [int int] /Error Percent integer Default Value [150 150] 0 Definition Optional Sets the quiet zone in 1/600 inch. The default value is [150 150]. Optional This designates error correction levels by percentage. Valid percentage values range from 0% to 400%. Any value outside this range causes a RANGECHECK error. A valid non-zero value overrides /ErrorLevel. See "/ErrorLevel" on page 96. A zero value causes the /ErrorLevel value to be used. If a valid non-zero percentage is specified, then the error correction level is computed by selecting one of the /ErrorLevel values (0-8).The error correction level selected is the one that best matches the number generated by multiplying the specified percentage by the number of data code words in the symbol. Example: If there are 20 data code words in the symbol, and /ErrorPercent is specified at 100% (100), then the /ErrorLevel selected is the one closest to 20, or /ErrorLevel 3 (16 error code words). For the same 20 data code words, and an /ErrorPercent of 35% (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 = 20/600ths %bar height = 40/600ths %number of error code words = 8 %because they are not specified, /Truncated defaults to %false (no ;truncation) and / QuietZone defaults to [150 150] Arguments for PDF417 bar code symbology 97

  • 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
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174

Arguments for PDF417 bar code symbology
97
This example prints a PDF417 bar code with the following settings:
/QuietZone
[int int]
[150 150]
Optional
Sets the quiet zone in 1/600 inch. The default value is [150
150].
/Error Percent
integer
0
Optional
This designates error correction levels by percentage. Valid
percentage values range from 0% to 400%. Any value outside
this range causes a RANGECHECK error. A valid non-zero
value overrides /ErrorLevel. See “/ErrorLevel” on page 96. A
zero value causes the /ErrorLevel value to be used.
If a valid non-zero percentage is specified, then the error
correction level is computed by selecting one of the /ErrorLevel
values (0–8).The error correction level selected is the one that
best matches the number generated by multiplying the
specified percentage by the number of data code words in the
symbol.
Example:
If there are 20 data code words in the symbol, and
/ErrorPercent is specified at 100% (100), then the /ErrorLevel
selected is the one closest to 20, or /ErrorLevel 3 (16 error code
words).
For the same 20 data code words, and an /ErrorPercent of 35%
(35), /ErrorLevel 2 is selected, because it is closest to 20 x 0.35,
or 7.
Sample01234
%this is the data to be encoded
<<
/Symbology /PDF417
%specifies PDF417 symbology
/Type 1
%rows and columns determined by /AspectRatio
/AspectRatio 0.5
%height / width ratio is 1 / 2
/Units /600ths
%smallest element width in 600th units
/ModuleWidth 20
%smallest element width = 20/600ths
/Height 2
%bar height = 40/600ths
/ErrorLevel 2
%number of error code words = 8
>>barcodeshow
%because they are not specified, /Truncated
defaults to %false (no ;truncation) and /
QuietZone defaults to [150 150]
Key
Type
Default
Value
Definition