Barcode Generator for PHP
Barcode Generator for ASP.NET
Barcode Generator for C#.NET / VB.NET
PDF417 Barcode - Demonstration

Encode this text

* For this demo, no more than 200 characters
PDF417 Barcode
Configurations

* For the demo you can only set 1 to 2








* For the demo you can only set -1 to 3


* For the demo you can only set -1 to 3





Code Result
<?php
require('BCGColor.php');
require('BCGDrawing.php');
require('BCGpdf417.barcode2d.php');

$colorfg = new BCGColor(0, 0, 0);
$colorbg = new BCGColor(255, 255, 255);

// PDF417 Part
$code = new BCGpdf417();
$code->setScale(2);
$code->setColumn(-1);
$code->setErrorLevel(-1);
$code->setMargin(true);
$code->setTruncated(false);
$code->setColor($colorfg, $colorbg);
$code->parse('PDF417');

// Drawing Part
$drawing = new BCGDrawing('', $colorbg);
$drawing->setBarcode($code);
$drawing->draw();

header('Content-Type: image/png');

$drawing->finish(BCGDrawing::IMG_FORMAT_PNG);
?>
Select Language: Français