Method | Description | |
---|---|---|
flush ( ) | Cause the buffer to send any partial input and wait on a newline. | |
getPrinter ( ) | Used by Escpos to check if a printer is set. | |
setPrinter ( |
Used by Escpos to hook up one-to-one link between buffers and printers. | |
writeText ( string $text ) | Accept UTF-8 text for printing. | |
writeTextRaw ( string $text ) | Accept 8-bit text in the current encoding and add it to the buffer. |
public setPrinter ( |
||
$printer | New printer |
public writeTextRaw ( string $text ) | ||
$text | string | Text to print, already the target encoding. |