Search code examples
common-lispbarcode

A barcode from cl-pdf bar-codes.lisp is invalid?


I have printed many barcodes using cl-pdf.

The barcode for "16537" doesn't scan. Others (e.g., "11537") do. I produced them using:

    (pdf::tester "16537" "/test1.pdf")
    (pdf::tester "11537" "/test2.pdf")

Solution

  • This is due to an incorrect value in cl-pdf in bar-codes.lisp in *table*. In that table, the Code B character for value 64 is \#' but should be \#`. This causes incorrect codes when encoding a string which contains \#' including if \#' is the check character. For "16537", \#' is the check character.

    I put this as an issue here

    Update: 2/18/22 Fixed by Marc Battyani