source: trunk/xgraph/jpgraph/barcode/examples/barcode_errhandling_ex0.php @ 42

Last change on this file since 42 was 42, checked in by marrucho, 10 years ago
File size: 480 bytes
Line 
1<?php
2// ==============================================
3// Output Image using Code 39 using only default values
4// ==============================================
5require_once ('jpgraph/jpgraph_barcode.php');
6
7try {
8$encoder = BarcodeFactory::Create(ENCODING_CODE39);
9$e = BackendFactory::Create(BACKEND_IMAGE,$encoder);
10$e->Stroke('abc123');
11} catch( JpGraphException $e ) {
12        //echo 'Error: ' . $e->getMessage()."\n";
13        JpGraphError::Raise($e->getMessage());
14}
15
16?>
Note: See TracBrowser for help on using the repository browser.