PDF417_ENCODE Program Documentation

 

 

Example HR

Example HR

Command Line

         The infile and outfile args are required and specify the input and
         output files respectively.  The optional rows and cols arguments
         allow the user to specify number of rows ( < 90) and number of columns
Example HR

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.

            Punctuation submode contains the rest of the punctuation codes.
           Switching between submodes is accomplished by using
           submode switching values that are usually encoded using values 27, 28 and 29.
           In alpha submode, the upper case charactors are assigned codes 0-25 for A-Z.
           Code 26 is sp, code 27 is a code ( latch to lower) that switches into Lower submode,
           code 28 is a code  ( latch to mixed) that switches to Mixed submode and code 29 is
           is used to shift to Punctuation submode.
              In Lower submode, the lower case charactors are assigned codes 0-25 for a-z.
           Code 26 is sp, code 27 is a code ( alpha switch) that switches back to Alpha submode,
           code 28 is a code ( latch to mixed) that switches to Mixed submode and code 29 is
           is used to shift to Punctuation submode.
              In Mixed submode, codes 0-9 are assigned to the numbers 0-9,  and codes 10-24
           are assigned to the punctuation charactors { Carriage Return, Horizontal Tab,
           Comma, Colon, # ,   - ,  Period,  $  ,  /  ,  + ,  %  ,  *  , =  ,  ^  }.  Code 25 is used
           to switch to Punctuation submode,   code 26 is sp,  code 27 is used to switch to
           Lower submode ( lower latch),  code 28 is used to switch to  Alpha submode
           ( alpha latch) and code 29 is used to switch to Punctuation submode ( punctuation
           shift).
               In Punctuation submode,   codes 0-28 are assigned to the punctuation charactors
           {{ semicolon, < ,  >,  @, [, \,  },  _ ,  apostrophe,  ~,  !,  Carriage Return, Horizontal 
           Tab, comma, colon, line feed,  -, Period,  $,  /,  double quote,  |, *,  ( ,  ),  ? , {,  }, 
           Single quote }}.  Code 29 is used for switching back to Alpha mode.
 

             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 .
Example HR

Byte Compaction

Example HR

Numeric Compaction

Example HR

Error Correction Code

Example HR
          The standard suggests the following number of codewords for error correction:
 

            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
 
 

Graphic Output Formats


For comments or questions contact: John Lien  jtlien@charter.net
Netscape NowThis page created with Netscape Navigator Gold