Site Search:
Free Barcode Generator
$content = strtoupper(trim($_POST["CONTENT"])); $file_type = strtoupper(trim($_POST["FILE_TYPE"])); $img_width = strtoupper(trim($_POST["IMG_WIDTH"])); $img_height = strtoupper(trim($_POST["IMG_HEIGHT"])); $symbology = strtoupper(trim($_POST["SYMBOLOGY"])); $bar_height = strtoupper(trim($_POST["BAR_HEIGHT"])); $narrow_bar_width = strtoupper(trim($_POST["NARROW_BAR_WIDTH"])); $rotate = strtoupper(trim($_POST["ROTATE"])); $ratio = strtoupper(trim($_POST["RATIO"])); $check_char = strtoupper(trim($_POST["CHECK_CHAR"])); $code128_set = strtoupper(trim($_POST["CODE128_SET"])); $supplement = strtoupper(trim($_POST["SUPPLEMENT"])); $upce_system = strtoupper(trim($_POST["UPCE_SYSTEM"])); if (empty($content )) $content = "12345678"; if (empty($file_type )) $file_type = "JPEG"; if (empty($img_width )) $img_width = "300"; if (empty($img_height )) $img_height = "150"; if (empty($symbology )) $symbology = "BAR39"; if (empty($bar_height )) $bar_height = "2"; if (empty($narrow_bar_width)) $narrow_bar_width = "0.03"; if (empty($rotate )) $rotate = "0"; if (empty($ratio )) $ratio = "2"; if (empty($check_char )) $check_char = "Y"; if (empty($code128_set )) $code128_set = "B"; if (empty($supplement )) $supplement = "0"; if (empty($upce_system )) $upce_system = "1"; if ($symbology == "CODE128") $check_char = "Y"; else $check_char = "N"; $tmpfname = tempnam ("in", $symbology."_".$img_width."x".$img_height."_"); $handle = fopen($tmpfname, "w"); fwrite($handle, "CONTENT=".$content."\n"); fwrite($handle, "FILE_TYPE=".$file_type."\n"); fwrite($handle, "IMG_WIDTH=".$img_width."\n"); fwrite($handle, "IMG_HEIGHT=".$img_height."\n"); fwrite($handle, "SYMBOLOGY=".$symbology."\n"); fwrite($handle, "BAR_HEIGHT=".$bar_height."\n"); fwrite($handle, "NARROW_BAR_WIDTH=".$narrow_bar_width."\n"); fwrite($handle, "ROTATE=".$rotate."\n"); fwrite($handle, "RATIO=".$ratio."\n"); fwrite($handle, "CHECK_CHAR=".$check_char."\n"); fwrite($handle, "CODE128_SET=".$code128_set."\n"); fwrite($handle, "SUPPLEMENT=".$supplement."\n"); fwrite($handle, "UPCE_SYSTEM=".$upce_system."\n"); fclose($handle); /* rename ($tmpfname, $tmpfname.".in"); */ usleep(1000000/4); $outfile = substr($tmpfname, 3).".jpg"; echo "
[ printer friendly ]
"; ?>
Content:
Options:
Symbology:
>Code 128-B
>Code 39
>Interleave 2 of 5
Image Size (w x h)
x
Bar Height (cm)
Narrow Bar Width (cm)
Fat to thin bar ratio
* Note: I 2 of 5 requires an even number of characters.
If you find our free barcode generator page useful, please feel free to link to it from your web site.
All trademarks, logos, symbols, product names, etc. are the property of their respective owners.
We welcome your
comments
about this web site.
(440) 350-9900
Copyright © 2009 Micro Associates.
All Rights Reserved.