solon Posted February 16, 2009 Share Posted February 16, 2009 Hey guys i have a web application that needs to print a receipt in POS(Point of Sale) paper size! Its actually database query result printed in an html format so i get a simple page, no background colors no nothing, just the text. How am i supposed to convert that to the POS paper size automatically so the user does not have to do it manually every time?? Thanks in advance Link to comment https://forums.phpfreaks.com/topic/145389-solved-php-resultecho-to-pos-printer/ Share on other sites More sharing options...
Mchl Posted February 16, 2009 Share Posted February 16, 2009 I guess that's the printer driver issue? Link to comment https://forums.phpfreaks.com/topic/145389-solved-php-resultecho-to-pos-printer/#findComment-763260 Share on other sites More sharing options...
solon Posted February 16, 2009 Author Share Posted February 16, 2009 Actually i don't know what the problem is! I did try to print and it doesn't work i just need to know if there is something specific that i need to do in my code in order for that to work! Thanks Link to comment https://forums.phpfreaks.com/topic/145389-solved-php-resultecho-to-pos-printer/#findComment-763266 Share on other sites More sharing options...
Mchl Posted February 16, 2009 Share Posted February 16, 2009 Certainly not in the PHP code. Perhaps on CSS but I doubt it. Link to comment https://forums.phpfreaks.com/topic/145389-solved-php-resultecho-to-pos-printer/#findComment-763270 Share on other sites More sharing options...
solon Posted February 16, 2009 Author Share Posted February 16, 2009 Ok Mchl thanks! Link to comment https://forums.phpfreaks.com/topic/145389-solved-php-resultecho-to-pos-printer/#findComment-763296 Share on other sites More sharing options...
Mchl Posted February 16, 2009 Share Posted February 16, 2009 Just a thought. I spotted this library the other day http://mpdf.bpm1.com/ It is supposed to generate PDFs from HTML. Did not have time to try it out, but perhaps you can use it. Link to comment https://forums.phpfreaks.com/topic/145389-solved-php-resultecho-to-pos-printer/#findComment-763301 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.