Opensource Barcode Generator in Pure Postscript

Written by James McDonald

April 12, 2012

Update March 2015: It appears that Scribus’ support for bwipp is now broken the control characters you need to insert correctly formatted barcodes now seem to be ignored. So I can’t get a valid GS1-128 barcode by using Code-128 and inserting the correct Symbol start and FNC1 characters as per below.

Therefore if you want to make valid barcodes use the latest version of bwipp and hack the postscript, use zint-qt which has GS1-128 support.

http://www.terryburton.co.uk/barcodewriter/generator/

Every now and a again I use the Barcode Generator in Scribus to do barcode mockups. I think Scribus uses the above linked postscript barcode writer. You need Ghostscript installed for the barcodewriter to work under Scribus

I have also been attempting to generate GS1-128 Barcodes which I have discovered are a CODE 128 barcode with a FNC1 character in them.

Anyway very interesting.

Code from scribus for the sample UCC/EAN-128 Barcode

^104^102Count^0991234^101!

What it means (I’m guessing)
^104 Start Code Set B which enables you to encode Alpha data
^102 Insert a FNC1 (Function 1 Character which makes this a GS1-128 Barcode)
Count <== the alpha data
^099 Switch to Code Set C enables you to encode numbers
1234 <== Numeric Data
^101 Switch to code set A which enables special characters including ESC NUL STX ETX etc
! <== Symbol Character (You could do this in Code Set B Also)

So for me to encode a GTIN14 barcode

^105^10212345678901231

^105 Start Code for Code Set C
^102 FNC1
12345678901231 <== Barcode Data

Which produces:

Unfortunately Scribus at the moment doesn’t seem to have the ability to do AI enabled barcodes. But the above mentioned barcode site can generate GS1-128 barcodes that include the Application Identifier

3 Comments

  1. Terry Burton

    Scribus will soon support the GS1-128 barcodes that you describe.

    Reply
  2. Terry Burton

    I’ve recently significantly revamped the Scribus barcode generator so that it now supports all of the formats provided by the online generator (http://www.terryburton.co.uk/barcodewriter/generator/), including GS1 formats that include AIs.

    If you’re not comfortable with building Scribus from the source repository then you can await the release of Scribus 1.5.1 which will include these improvements.

    Reply
    • James

      That’s fantastic Terry. I use Scribus when doing labelling mockups so the support for the newer formats is very much appreciated. Thanks!

      Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

You May Also Like…

How to Research a CPU Upgrade

How to Research a CPU Upgrade

Upgrade Time! Doing a lot of VMWare Workstation virtualization to create labs for self-study and training. Finding...