manual barcode conversion

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
first_blood
Forum Newbie
Posts: 5
Joined: Fri Aug 29, 2008 11:37 am

manual barcode conversion

Post by first_blood »

I have a php page where i $_POST a string variable from another page and display it in the form of barcode. I am using Code-128 as the barcode font.

My problem is every computer that views this page must have the barcode installed in their computer. Otherwise the string displays in Times New Roman (the default font for the page).

I need to make a manual conversion either in PHP or in Javascript so the client need not have that barcode installed in their computer to view the barcode. Is it possible? Please help.

Thank you.
User avatar
kaszu
Forum Regular
Posts: 749
Joined: Wed Jul 19, 2006 7:29 am

Re: manual barcode conversion

Post by kaszu »

You can generate a barcode image in PHP with GD library. Google returned http://www.mribti.com/barcode/ for "php gd barcode", haven't tried it myself.
And yes, it's also possible in javascript by positioning divs to create a barcode image.
Post Reply