/** * Force barcode to be drawed with a top offset. * * @param RendererInterface $renderer */ protected function drawBarcode(RendererInterface &$renderer) { $this->options['textposition'] = 'top'; parent::drawBarcode($renderer); $this->options['textposition'] = 'bottom'; }