SetFont($font); $obj->DrawObject($xres); if($flushimg) { $obj->FlushObject(); $barcodedata = true; } else { $barcodedata = $obj->GetImage(); } $obj->DestroyObject(); unset($obj); } return $barcodedata; } ?>