Sg2.9
Script to generate barcodes?
Recent RSS
Script to generate barcodes?
From:  Graham van de Ruit
Date:  29. March 2011, 12:03

Hi there

Does anyone know if there are any Scriptographer scripts for generating barcodes, or how one would create one?

I work in book design and regularly need to generate barcodes from ISBN numbers (EAN-JAN-13). I have some scripting experience and would be happy to try to create my own script and share it, but I'm not sure where to find out about barcoding specifically.

I'd appreciate any advice!

Graham

Re: Script to generate barcodes?
From:  ken frederick
Date:  29. March 2011, 22:42

http://www.parkscomputing.com/barcode.html

with a little time you could probably port this code to scriptographer.

Ken

Re: Script to generate barcodes?
Date:  30. March 2011, 11:38

Hi,
this is actually something I have been thinking of doing for a long time now but never really gotten around to do because of other projects. Also, there seem to be lots of free barcode generators out there on the interweb.

I don't really know the difference between EAN-13 and JAN-13 but if you'd like you could read up on how to make the EAN-13 kind by yourself at Barcode Island.

Maybe this could wake me up from my current state of creative hibernation.

Re: Script to generate barcodes?
From:  Graham van de Ruit
Date:  30. March 2011, 12:07

Thank you both for the very useful links. It looks like it may be more complex than I initially expected, but I plan to spend some time going through these resources to see what I can learn. I may be a bit out of my depth, but I do enjoy a challenge!

I have used several of the free barcode generators available online, but am frustrated by the limited export options. I'd be much happier creating a vector graphic, and I'd be very pleased with myself if I could work out the scripting to do it.

If I get anything to work I'll post it here. In the meantime, I look forward to seeing what other users come up with.

Re: Script to generate barcodes?
Date:  30. March 2011, 22:28

Hello again,
here is a very limited EAN-13, JAN-13 and, from what I understand, ISBN barcode generator I have thrown together. The code is very heavily borrowed from the site mentioned earlier by Ken Frederick.
Very basic, though. It draws individual bars so some good ol' pathfinder action is needed. Also, no text/digits, just bars in all their glory...

Re: Script to generate barcodes?
Date:  11. June 2011, 17:08

Thanks very much for your help, Håkan.

I have finally got round to looking at your script, and I've added a few lines. It now creates a single compound path from the bars and adds the numbers below and ISBN above. It also sets the bars and text to be 100% black.

I haven't had a chance to test it on a live project, but from my trials it all seems to work nicely. If you increase the minimum bar width from 1pt, however, you'll need to manually adjust the text positioning.

Also, this is designed to be run in an empty document. After the bars are created the script searches for all paths in the document and unites them, so any paths you already have will also be joined.

I'd appreciate feedback from anyone who uses the script or improves it further.

Re: Script to generate barcodes?
Date:  11. June 2011, 17:53

Hi,

Very nice. I have some more tweaks to this very rudimentary barcode generator. One of them being a simple routine to create real bars and not just a series of neighboring strokes. On the other hand I am thinking of completely rewrite the whole thing (as this was just very hastily put together because of a sudden flash of inspiration) to allow the user to choose from a wide range of different barcode symbologies.
But as you, Graham, said; it would ve nice if someone wanted to expanf and/or improve on it.

Re: Script to generate barcodes?
Date:  19. September 2011, 22:06

Anybody have any good qr code source code to look at? I'd like to try and take a stab at creating a scriptographer tool for 2d barcodes (not sure what i'm in for yet though). ^_^

Re: Script to generate barcodes?
Date:  28. September 2011, 09:28

Here's some info on QR. Would be fun if you'd do anything with them.

How To Create QR Code
QR Code Info

Re: Script to generate barcodes?
From:  wilsewe
Date:  8. June 2013, 09:59

That's nice. I would like to share some new QR Code info with you. It may be helpful for someone.

QR Code introduction
How to create QR Code in VB.NET

Re: Script to generate barcodes?
From:  recthor
Date:  17. June 2013, 10:39

i can provide some information for you , i hope these might be helpful. good luck.

this is the turoial of generating QR barcode.

this is the tool to create QR barcode.

there are many ways to do that. If you wanna save these complicated steps and find a easy way, you can google barcode generator and you will find many useful tools, or google how to create barcode in c# to get instructive articles. Good luck:) I think some imaging sdk programmes can enable to quickly generate barcodes. i have use imaging sdkr which can original layouts hyperlinks, Images and tables retained in word ,text, image, Epub, html.but i forgot download the wedsite ,go to google. By the way , pay attention to your system platform, select the suitable one .

Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19
Script of the Moment
Area Type Resizer 03.08.12