Generate EAN,UPC,ISBN barcodes in Ubuntu / Debian Linux

barcode‘ is a utility in Debian GNU/Linux distribution used for generating common 1-D barcode: EAN-13, EAN-8, UPC, ISBN, code93, code128 & codabar.
barcode outputs file in postscript format which can be converted to PDF with the ‘ps2pdf‘ utility

Usage:

1. Outputs isbn barcode and converts it to PDF file

$  barcode -o barcode.ps -e isbn
$  ps2pdf barcode.ps

2. Outputs EAN-13 barcode

$ barcode -o barcode-ean.ps -e ean

If you are looking for a tool that could generate QR Code, then you can try ‘qrencode

Generate QR Code in Ubuntu Linux

You can easily generate QR Code under Ubuntu using the command line ‘qrencode’ package. In Ubuntu 11.04 Natty Narwhal, you can install qrencode using this command:

apt-get install qrencode

To generate QR Code image, you only need to run this command:
qrencode -l L -v 1 -o qrcode-test.png "Hello, World!"

QR Code is a form of 2 dimensional barcode which can store arbitary text data including URL, email or plain text. For more information, please refer to the QR Code Wikipedia Entry

How to Generate Barcode in OpenOffice.org

I found this extension as I was searching for a great application to generate EAN-13 compatible barcode. This OpenOffice.org extension allows you to generate 5 different types of barcode generally found in the market, such as :

  • UPC-A (the most common barcode in the US)
  • EAN-13 (the most common barcode in Europe)
  • JAN (the barcode used in Japan, basically EAN-13 with the country code for Japan)
  • ISBN-13 (the barcode used in books after 2007, basically EAN-13 with a superscript)
  • ISBN-10 (the barcode used in books before 2007, basically EAN-13 with a different superscript)

Here’s how to install the extension :

  • First go to OpenOffice.org extensions website, then search for the barcode extension
  • Download the extension – barcode.oxt
  • Then start OpenOffice.org, go to Tools and select Extension Manager
  • When a dialog appears, click on Add, then find and select barcode.oxt, the extension will be installed on your OpenOffice.o
  • rg

  • To test the extension, start OpenOffice.org Draw, go to Insert, and selects Barcode, you can choose any of the barcode type to generate inside OpenOffice.org, type in the barcode value and it will be displayed on the page, with no extra effort!

Openoffice

Openoffice

Openoffice