Skip to content

Carton_Tk

Anthony Burbank edited this page Aug 14, 2018 · 14 revisions

This GUI version is for single conversions. It takes input from the user and processes it into a PDF document -- two labels on each page.

It will convert everything to UPPERCASE, so don't worry about capitalization. BATCH should be in the format 795R (US only) or 795/895R (US/CAN), because that's what the distributor we work with requires.

The labels are two per page, 4" x 6", as close to BISG compliant as I could get. The Barcodes are in 128C format (except for the PRICE barcode) and include a 'FNC1' code. Not using the 'FNC1' is what causes most of the problems along the supply chain. You can add -debug as a command line argument to get more verbose output.

You need to edit the code and change my $publisher= to your company name (look for the TODO blocks at line 28). You also need to update the array @pub_list with your company/imprint names to be able to choose the right one for the label.

There are several ways to format an ISBN, either 978-0-00000-000-0 or 978-0-000000-00-0. There's an option now to choose which format shows on the label. It's not really important, just for consistency.

The 'Also create a PNG image of PDF' option only works if convert is installed on your system

Requires:

Tk

PDF::Reuse

PDF::Reuse::Barcode

Barcode::Code128

convert

Screenshot

Clone this wiki locally