Jump to content

Roll back paper after printing


sanlove

Recommended Posts

After printing the paper will be rolled out few more inches so that the user can tear off. then for printing the second time, i have to roll the paper back.. how is this possible ?

 

my current code:

<?php

$handle=printer_open("Epson LX-300+");

$font=printer_create_font("Draft Condensed",25,6,PRINTER_FW_THIN,false,false,false,0);

printer_set_option($handle, PRINTER_MODE, "RAW");

printer_set_option($handle,PRINTER_PAPER_FORMAT, PRINTER_FORMAT_CUSTOM);

printer_set_option($handle, PRINTER_TEXT_ALIGN, PRINTER_TA_LEFT);

printer_set_option($handle, PRINTER_PAPER_WIDTH, 10);

printer_set_option($handle, PRINTER_PAPER_LENGTH, 200);

printer_select_font($handle,$font);

printer_write($handle,"$int_tape_id\n\n\n\n\n\n");

printer_close($handle);

?>

Link to comment
https://forums.phpfreaks.com/topic/163607-roll-back-paper-after-printing/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.