Files
dolibarr/htdocs/includes/mike42/escpos-php/src/SimpleCapabilityProfile.php
Laurent Destailleur 9f20779136 Revert "Update escpos-php"
This reverts commit 2f42a226d0.
2016-05-18 13:18:55 +02:00

18 lines
568 B
PHP

<?php
/**
* This capability profile is designed for non-Epson printers sold online. Without knowing
* their character encoding table, only CP437 output is assumed, and graphics() calls will
* be disabled, as it usually prints junk on these models.
*/
class SimpleCapabilityProfile extends DefaultCapabilityProfile {
function getSupportedCodePages() {
/* Use only CP437 output */
return array(0 => CodePage::CP437);
}
public function getSupportsGraphics() {
/* Ask the driver to use bitImage wherever possible instead of graphics */
return false;
}
}