The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 2,089 other followers

Archive for November 30th, 2009

Generating EAN-13 barcode EPS files for your article numbers

Posted by jpluimers on 2009/11/30

Recently, I needed a bunch of EPS files for EAN-13 barcodes (that’s the kind of barcodes European companies put on their products).

Terry  Burton wrote a great barcode writer in pure PostScript for this, with a simple web front end to generate a barcode one at a time.

Actually, his tool can:

  • Generate all kinds of 1D and 2D barcodes (EAN-5, -8, -13, Code 128, Code 39, Code 93, Data Matrix, GS1, ISBN and many may more)
  • Generate the check digits where needed

Since most DTP packages favour EPS over PS, and I needed more than just a few of them, I went a bit beyond the one-at-a-time simple web front end.

In fact, the EPS file generated by Terry Burton’s web front end has just one variable: the article number.

Basically, there are two ways go generate a whole bunch of the barcode EPS files:

  1. Grab one EPS file from his site and search/replace the article number in it (do! it’s easy, read on)
  2. Encode the parameters in the URL on his web-site, and extract the link to the (random location of the) EPS file, then download the EPS file (don’t! costs a lot of time and burdens his web-server)

Let’s see how easy 1. is… Read the rest of this entry »

Posted in Development, EPS/PostScript | 5 Comments »

 
%d bloggers like this: