Skip to content

Check Digits

Terry Burton edited this page Mar 26, 2014 · 10 revisions

#summary Reference for options affecting check digits

=Check Digits=

==includecheck==

Generate check digit(s), where relevant.

Example

Calculate the optional check characters of this Code 93 symbol:

{{{ 0 0 moveto (CHECK ME OUT) (includecheck) /code93 /uk.co.terryburton.bwipp findresource exec }}}

http://wiki.postscriptbarcode.googlecode.com/git/images/optincludecheck.png

==includecheckintext==

Show the calculated check digit in the human readable text.

Notes

  • For barcode symbologies where the check digit is not manditory, this option must be used in combination with includecheck.
  • If any part of the checksum does not have a printable representation then that part is not displayed.

Example

Display the check digit of this Royal Mail barcode:

{{{ 0 0 moveto (LE28HS9Z) (includetext includecheckintext) /royalmail /uk.co.terryburton.bwipp findresource exec }}}

http://wiki.postscriptbarcode.googlecode.com/git/images/optincludecheckintext.png

Clone this wiki locally