?i»?
Current Path : /home/scgforma/www/soc064/htdocs/includes/mike42/escpos-php/example/specific/ |
Current File : /home/scgforma/www/soc064/htdocs/includes/mike42/escpos-php/example/specific/29-latvian-star-tup592.php |
<?php require_once(dirname(__FILE__) . "/../../Escpos.php"); /* This example shows the printing of Latvian text on the Star TUP 592 printer */ $profile = StarCapabilityProfile::getInstance(); /* Option 1: Native character encoding */ $connector = new FilePrintConnector("php://stdout"); $printer = new Escpos($connector, $profile); $printer -> text("GlÄžšķūņa rÅ«Ä·Ä«Å¡i dzÄ“rumÄ Äiepj Baha koncertflÄ«Ä£eļu vÄkus\n"); $printer -> cut(); $printer -> close(); /* Option 2: Image-based output (formatting not available using this output) */ $buffer = new ImagePrintBuffer(); $connector = new FilePrintConnector("php://stdout"); $printer = new Escpos($connector, $profile); $printer -> setPrintBuffer($buffer); $printer -> text("GlÄžšķūņa rÅ«Ä·Ä«Å¡i dzÄ“rumÄ Äiepj Baha koncertflÄ«Ä£eļu vÄkus\n"); $printer -> cut(); $printer -> close(); ?>