I tried to create a PDF file using write1dbarcode. It works but I have a white page with one barcode. How can I correct that?

$pdf->write1DBarcode($value->codeBarre, 'C128B', '', '', 50, 16, 0.4, $style);
$pdf->SetXY($x_before_barcode, $y_before_barcode);