selectPrintMode(Printer::MODE_DOUBLE_HEIGHT | Printer::MODE_EMPHASIZED | Printer::MODE_DOUBLE_WIDTH); $printer->text("Implemented languages\n"); $printer->selectPrintMode(); foreach ($inputsOk as $label => $str) { $printer->setEmphasis(true); $printer->text($label . ":\n"); $printer->setEmphasis(false); $printer->text($str); } $printer->feed(); $printer->selectPrintMode(Printer::MODE_DOUBLE_HEIGHT | Printer::MODE_EMPHASIZED | Printer::MODE_DOUBLE_WIDTH); $printer->text("Works in progress\n"); $printer->selectPrintMode(); foreach ($inputsNotOk as $label => $str) { $printer->setEmphasis(true); $printer->text($label . ":\n"); $printer->setEmphasis(false); $printer->text($str); } $printer->cut(); /* Close printer */ $printer->close(); } catch (Exception $e) { echo "Couldn't print to this printer: " . $e->getMessage() . "\n"; }