utf8Glyphs($text); /* * Set up and use the printer */ $buffer = new ImagePrintBuffer(); $profile = EposTepCapabilityProfile::getInstance(); $connector = new FilePrintConnector("php://output"); // = WindowsPrintConnector("LPT2"); // Windows LPT2 was used in the bug tracker $printer = new Escpos($connector, $profile); $printer -> setPrintBuffer($buffer); $printer -> text($text . "\n"); $printer -> close();