<?php
require_once('jpgraph/pdf417/jpgraph_pdf417.php');
$data1 = '12345';
$data2 = 'Abcdef';
$data3 = '6789';
$data = array(
array(USE_NC,$data1),
array(USE_TC,$data2),
array(USE_NC,$data3));
$columns = 8;
$modwidth = 2;
$errlevel = 2;
$showtext = true;
try {
$encoder = new PDF417Barcode($columns,$errlevel);
$backend = PDF417BackendFactory::Create(BACKEND_IMAGE,$encoder);
$backend->SetModuleWidth($modwidth);
$backend->NoText(!$showtext);
$backend->Stroke($data);
}
catch(JpGraphException $e) {
echo 'PDF417 Error: '.$e->GetMessage();
}
?> |