PHP Classes

What is the best PHP pos printing class?: Print the invoice bill to a POS printer

Recommend this page to a friend!
  All requests RSS feed  >  What is the best PHP pos printing class?  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

What is the best PHP pos printing class?


Picture of Nelson by Nelson - 6 years ago (2016-11-05)

Print the invoice bill to a POS printer

This request is clear and relevant.
This request is not clear or is not relevant.


My code is generating PDF output and it is printing. PDF seems to be in correct format. But on printed paper, the content is shrink to the center. And also its not printing directly. We have to print the invoice by clicking on the print option in PDF file.

Ask clarification

1 Recommendation

xzypdf: Generate PDF that automatically prints when opens

This recommendation solves the problem.
This recommendation does not solve the problem.


Picture of Christian Vigh by Christian Vigh Reputation 395 - 6 years ago (2016-11-05) Comment

There is no way from the server side to force printing on the client side : this would be a security breach ! I've seen one or two solutions on the web, but they require installing an application on the client side, which is not what you may want.

I found this class here that opens the print dialog when the user opens the document ; it embeds javascript code in the pdf file. It could be a good starting point for you.

Recommend package