Hiding Code Text that is too Long to Display in PHP

Aspose.BarCode - Hiding Code Text that is too Long to Display

To Hide Code Text that is too Long to Display using Aspose.Barcode Java for PHP, simply invoke HideCodeText module. Here you can see example code.

PHPCode

 # Instantiate barcode object

$builder = new BarCodeBuilder();

$symbology=new Symbology();

$builder->setSymbologyType($symbology->DataMatrix);

$builder->setCodeText("The quick brown fox jumps over the lazy dog\n The quick brown fox jumps over the lazy dog\n");

$codeLocation=new CodeLocation();

$builder->setCodeLocation($codeLocation->None);

$font = new Font();

$builder->setCodeTextFont(new Font("Serif", $font->BOLD . $font->ITALIC, 20));

\# Save the image

$builder->save($dataDir . "HideCodeText.jpg");

\# Display Status

print "Hide Code Text Successfully.".PHP_EOL;

Download Running Code

Download Hiding Code Text that is too Long to Display (Aspose.BarCode) from any of the below mentioned social coding sites: