source:
trunk/xgraph/jpgraph/Examples/pdf417_ex1.php@
42
Last change on this file since 42 was 42, checked in by , 11 years ago | |
---|---|
File size: 376 bytes |
Rev | Line | |
---|---|---|
[42] | 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.