Hey, Ive changed my mind and using generated barcode in picture, but after all I commented a few lines maybe it helps u.
$this->write1DBarcode('www.site.com', 'C39+', '', '', 20, 10, 0.4, $style, 'N');
It works , check write1DBarcode function details.