source:
trunk/xgraph/jpgraph/Examples/pdf417_ex1.php
Last change on this file was 42, checked in by , 10 years ago | |
---|---|
File size: 376 bytes |
Line | |
---|---|
1 | <?php // content="text/plain; charset=utf-8" |
2 | require_once ('jpgraph/pdf417/jpgraph_pdf417.php'); |
3 | |
4 | $data = 'PDF-417'; |
5 | try { |
6 | // Create a new encoder and backend to generate PNG images |
7 | $backend = PDF417BackendFactory::Create(BACKEND_IMAGE,new PDF417Barcode()); |
8 | $backend->Stroke($data); |
9 | } |
10 | catch(JpGraphException $e) { |
11 | echo 'PDF417 Error: '.$e->GetMessage(); |
12 | } |
13 | ?> |
Note: See TracBrowser
for help on using the repository browser.