source: trunk/client/modules/Elezioni/grafici/barcode/examples/barcode_errhandling_ex0.php@ 285

Last change on this file since 285 was 266, checked in by roby, 6 years ago
File size: 464 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.