pdf417_ex1.php
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php // content="text/plain; charset=utf-8"
require_once('jpgraph/pdf417/jpgraph_pdf417.php');
 
$data = 'PDF-417';
try {
    // Create a new encoder and backend to generate PNG images
    $backend = PDF417BackendFactory::Create(BACKEND_IMAGE,new PDF417Barcode());
    $backend->Stroke($data);
}
catch(JpGraphException $e) {
    echo 'PDF417 Error: '.$e->GetMessage();
}
?>