Page 1 of 1

manual barcode conversion

Posted: Thu Sep 18, 2008 7:25 pm
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.

Re: manual barcode conversion

Posted: Fri Sep 19, 2008 12:30 pm
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.