| Server IP : 93.86.61.54 / Your IP : 216.73.216.60 Web Server : Apache/2.4.62 (Ubuntu) System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64 User : www-data ( 33) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/php/jpgraph/src/Examples/ |
Upload File : |
<?php // content="text/plain; charset=utf-8"
require_once ('jpgraph/pdf417/jpgraph_pdf417.php');
$data = 'PDF-417';
// Setup some symbolic names for barcode specification
$columns = 8; // Use 8 data (payload) columns
$errlevel = 2; // Use error level 2 (minimum recommended)
$modwidth = 2; // Setup module width (in pixels)
$height = 3; // Height factor
// Create a new encoder and backend to generate PNG images
try {
$encoder = new PDF417Barcode($columns,$errlevel);
$backend = PDF417BackendFactory::Create(BACKEND_IMAGE,$encoder);
$backend->SetModuleWidth($modwidth);
$backend->SetHeight($height);
$backend->Stroke($data);
}
catch(JpGraphException $e) {
echo 'PDF417 Error: '.$e->GetMessage();
}
?>