text("Starting print job...\n"); $printer -> text(date("h:i:sa")."\n"); $printer -> setJustification(Printer::JUSTIFY_CENTER); // Image! //$tux = EscposImage::load(public_path("images/escpos-php.png"), false); $tux = EscposImage::load(public_path("images/escpos-php.png")); $printer -> bitImage($tux); $printer -> text("QR Test\n"); // QR Test - remove at some point. $testStr = "This is a print test!"; $printer -> qrCode($testStr, Printer::QR_ECLEVEL_L, 8, Printer::QR_MODEL_2); $printer -> cut(); } finally { $printer -> close(); } ?>