I can generate a barcode using TCPDF using the following code:
$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'QRCODE,L');
$barcodeobj->getBarcodePNG(6, 6, array(0,0,0));
Instead of displaying the barcode on screen I just want to save the png barcode to a specified folder, I checked through the documentation but couldn't find how to achieve that. (I understand how to save a generated PDF).
Any help achieving that would be appreciated.
Thanks