text("Hello World!\n"); $printer -> setColor(Printer::COLOR_2); $printer -> text("Red?!\n"); $printer -> setColor(Printer::COLOR_1); $printer -> text("Default color again?!\n"); $printer -> cut(); } finally { /* Always close the printer! */ $printer -> close(); }