TRUE,"DrawArea"=>TRUE); $Size = $Barcode->getSize($String,$Settings); /* Create the pChart object */ $myPicture = new pImage($Size["Width"],$Size["Height"]); /* Set the font to use */ $myPicture->setFontProperties(array("FontName"=>"../fonts/GeosansLight.ttf")); /* Render the barcode */ $Barcode->draw($myPicture,$String,10,10,$Settings); /* Render the picture (choose the best way) */ $myPicture->autoOutput("pictures/example.singlebarcode39.png"); ?>