Printing Tickets

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
phppick
Forum Commoner
Posts: 57
Joined: Thu Aug 14, 2003 5:59 am

Printing Tickets

Post by phppick »

I am writing a code that generates Tickets, i am using html2fpdf, to make it in PDF Format.

My Ticket Width is 9.55 Inch, Height is 3.6 Inch

I made the PDF Page Size also with this Dimensions. When i am giving Print, the alignment is changing, i.e the text that is going to be printed on Ticket is going out boxes (i have pre printed ticket format, with empty boxes such as Route: , Time: etc)

And also..when a single ticket is booked, i want to get the paper out from the printer, until end of first ticket, to tear it easliy.
and make the second ticket to get ready for printing. Tickets are attached to each other..

I tried to use "\r" (Carriage Return) and trying to use "\f" (Form Feed), but don't know ..

Any suggesstions?

Thanks in advance
Post Reply