text($text . "\n"); $printer -> cut(); // Close the connection $printer -> close();