Set Start and Stop Symbols of Codabar Barcode in PHP

Aspose.BarCode - Set Start and Stop Symbols of Codabar Barcode

To Set Start and Stop Symbols of Codabar Barcode using Aspose.Barcode Java for PHP, simply invoke StartStopSymbol module. Here you can see example code.

PHPCode

 # Create instance of BarCodeBuilder, specify codetext and symbology in the constructor

$symbology=new Symbology();

$builder = new BarCodeBuilder("$ 123:50", $symbology->Codabar);

\# Set the codabar start symbol to A

$codabarSymbol=new CodabarSymbol();

$builder->setCodabarStartSymbol($codabarSymbol->A);

\# Set the codabar stop symbol to D

$builder->setCodabarStopSymbol($codabarSymbol->D);

\# Save the image to disk in PNG format

$builder->save($dataDir . "barcode.out.png");

\# Print message

print "Barcode image generated successfully.".PHP_EOL;

Download Running Code

Download Set Start and Stop Symbols of Codabar Barcode (Aspose.BarCode) from any of the below mentioned social coding sites: