Search My Blog

Wednesday, October 27, 2010

Generating barcodes with KBarcode | Worldlabel Blog

Sometimes alphanumeric text simply won’t cut it, and you need a bar code — mailing labels, security badges, inventory tracking, perhaps even URL-encoding for mobile phones. With KBarcode, you can use a simple desktop application to both generate and print several dozen different barcode types, on any sort of physical media.

Like you might guess, KBarcode is a Qt-and-KDE program, but it supports several different backends for generating the wide variety of barcode formats it supports. The backends include GNU Barcode, Barcode Writer in Pure Postscript, PDF417 Encode (which supports the PDF417 stacked barcode format, and has no relation to Adobe’s Portable Document Format), and the commercial (and proprietary) TBarcode from

Between them, these backends support well over fifty different formats, from commercial standards like UPC and ISBN to postal standards like USPS OneCode to general-purpose formats like Code 39 and Code 128. TBarcode even adds support for a few 2-D formats, like Data matrix and QR Code. For those who are not familiar with the various barcode encoding schemes, the Barcode Writer in Pure Postscript site links to Wikipedia entries with background information on most of them.

KBarcode is packaged by most of the leading desktop Linux distributions, so it can usually be installed through the system package manager. It does have some KDE dependencies, however, so if you are running a GNOME-based distro you may find a longer list of packages needing to be installed to satisfy them. The only out-of-the-ordinary requirement is on an external MySQL database — this, too, should be easily installable, but if you have never before set up MySQL on the machine in question, you are in for a few extra steps.

You can also download the packages or source code tarballs from the project’s Web site. The only documentation for the application is there as well, as a downloadable PDF manual. You can, however, pull up an HTML file installed by KBarcode in /usr/share/docs that explains a few of the supported barcode formats — their character sets, maximum length, checksum support, etc. It is found in the Help menu under “Barcode Help.”

Generating barcodes

When you launch KBarcode, you are presented with a compact window holding four buttons. Each launches one of the program’s modules in a window of its own — the barcode generator, the label editor, the batch-printing dialog, or the SQL database configuration tool.


Interesting App... I've never tried making a Gar Code before.


No comments: