PHP printer

Hi,

I am using the following code to print receipt with a logo, everything is working perfectly, but the logo is printed at the very bottom, I try changing the parameters 1,1 but no luck :frowning:


$handle = printer_open("EPSON");
printer_set_option($handle, PRINTER_MODE, "raw");
printer_start_doc($handle, "My Document");
printer_start_page($handle);    
printer_draw_bmp($handle, "logo2.bmp", 1, 1);    
printer_write($handle,$receipt_text);
printer_end_page($handle);
printer_end_doc($handle);
printer_close($handle);

bool printer_draw_bmp(resource $printer_handle,string $filename,int $x,int $y [, int $width ], int $height);

If you specify $x and $y value in addtion to $width and $height, it may work.

Hi katierosy,

I tried that but no luck :cry: