![]()
![]()
Command Line
type = [pbm,ps,gif]
( < 30) in the output
barcode. The default if these
args are not
supplied is 24 rows and 8 columns. Also if rows are supplied, then
columns must be supplied also. If rows are set to 999,
then the
program will use as many rows as needed to generate the barcode, up
to
the limit of 928 total codes used. This will allow up to
928/cols rows for the barcode. The last parameter is the
ec_level.
This specifies the level of error correction to use. It is
optionally
supplied only if rows and columns are also supplied . The
optional
-t type argument is used to specify the output type of the file.
Valid types are pbm, ps and gif. The default type
is ps (postscript).
Setting the type to pbm gives a portable bit map output and to
gif
give a gif output.
Text Compaction
Text
compation
is used to compress ascii character strings into pdf417 code
words.
Charactors
are assigned values 0-29 in 4 different submodes. Alpha submode
contains
all the upper
case charactors. Lower case submode contains the
lower
case
letters. Mixed
submode
contains the charactors 0-9 and some punctuation.
Text compression is specified to the pdf417 program using the following syntax.
TC "this is a test\NL"
This will give the string "this is a test" followed by a Carriage
Return
and
Line
feed.
The
text inside the quotes can be any ascii string. To facilitate the
usage of the
Carriage Return (CR), Line Feed (LF), and Newline (NL) the
following should
be used in the string: \CR will produce a Carriage Return ( ascii
10); \LF will
produce a Line Feed and \NL will produce a new line ( Carriage
Return,
Line
Feed).
Scanners may not scan unless they get a carraige return and line feed
at
the end
of text
data. If you really want a backslash charactor in your
string,
you must use
\BS in
place of the backslash.
The
state
transtition diagram for switching between submodes is given here
.
![]()
Byte Compaction
Byte compaction mode is specified to the pdf417_encode program
using
the following
syntax in the input file.
BC "012345"
BC "012ABCDEF00"
Numeric Compaction
Numerical compaction is specified to the pdf417_encode program
using
the following
syntax in the input file.
NC "012345567"
Node that the numbers inside the quotes must be in the range
0-9.
The string of
numbers can be any length up to 256.
(x-3)(x-9) = x^2 -12x +27
(x-3)(x-9)(x-27) = x^3 -39x^2 + 351 x - 729
(x-3)..(x-27)(x-81) = x^4 -120x^3 + 3510x^2 -29160x + 59049
(x-3)..(x-81)(x-243) = x^5 -363x^4 + 32670x^3 -882090x^2 + 7085880x - 14348907
(x-3)..(x-243)(x-729) = x^6 - 1092x^5 + 297297x^4 - 23783760 x^3
+ 650129490 x^2 - 5179955427 x
+ 10460353203
A good source for finding these polynomials is at this university site.
Number
of Message
Symbols
Error Correction
Level
Number of Error
Code Bytes
1-40
2
8
40-160
3
16
161-320
4
32
321-863
5
64
For comments or questions contact: John Lien jtlien@charter.net
This
page created with Netscape Navigator Gold