How to print on already printed paper from a web page?

I have already printed A4 pages in the attached printer image! Now I want to print data in blank fields from a web page. Can someone tell me how to do this?

I want to send data exactly to these places in order to print a receipt

a4size receipt

Any help would be appreciated.

+7
source share
3 answers

Finally, I ended this problem using crystal reports with a Windows application on dotnet, which has a very beautiful and user-friendly interface, php did not help with this.

+1
source

Provide accurate printing instructions by offering a PDF file in DIN-A4 format.

You can generate PDFs with various PDF libraries from your PHP script.

+6
source

You can specify all CSS elements in centimeters or inches. This is especially useful if you use @media = print

So you might have something like:

<div id="booking_num" style="position: absolute; top: 6.25cm;left:2.32in;"> 1213123 </div> 

This works very reliably in any modern browser.

0
source

All Articles