Метод | Описание | |
---|---|---|
__construct ( ) | Empty print buffer. | |
flush ( ) | ||
getPrinter ( ) | ||
setPrinter ( |
||
writeText ( $text ) | ||
writeTextRaw ( $text ) |
Метод | Описание | |
---|---|---|
asciiCheck ( string $char, boolean $extended = false ) : boolean | Return true if a character is an ASCII printable character. | |
identifyText ( string $text ) : boolean | integer | Return an encoding which we can start to use for outputting this text. | |
loadAvailableCharacters ( ) | Based on the printer's connector, compute (or load a cached copy of) maps of UTF character to unicode characters for later use. | |
write ( string $data ) | Write data to the underlying printer. | |
writeTextUsingEncoding ( string $text, integer $encodingNo ) | Encode a block of text using the specified map, and write it to the printer. |
public setPrinter ( |
||
$printer |