Print a Receipt Ticket in Pdf

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
PedroAlex
Posts: 231
Joined: Tue Feb 09, 2010 3:06 am

Print a Receipt Ticket in Pdf

#1 Post by PedroAlex »

Hello!

Can anyone give a tip for this problem!
I'm using DcPrint On commands to print to a receipt printer. But sometimes it is necessary to send this receipt by email in Pdf.
It turns out that when I send it to PDF, the paper format is always A4. And the receipt appears with a large area around it in white!
How can I set the paper format?
I did some tests so I'm not getting it.

I wrote a small program to demonstrate the situation.

Many Thanks!
Attachments
Teste_Print_TICKET.rar
(162.66 KiB) Downloaded 154 times
Pedro Alexandre

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Print a Receipt Ticket in Pdf

#2 Post by rdonnay »

This appears to me to be a limitation of the Acrobat PDF viewer.
The eXpress train is coming - and it has more cars.

User avatar
PedroAlex
Posts: 231
Joined: Tue Feb 09, 2010 3:06 am

Re: Print a Receipt Ticket in Pdf

#3 Post by PedroAlex »

Hi Roger.

I found the source of the problem.
It is related to the FormSize of BullZip Pdf.
I found this excellent example \exp20\samples\printer\printerforms.prg and managed to create a specific formsize for 80 mm wide paper.
FormPrint.jpg
FormPrint.jpg (195.78 KiB) Viewed 2091 times
Then in Dcprint On .... Formsize I refer to the formsize ID that I created and that works Ok.
T_Pdf.jpg
T_Pdf.jpg (142.47 KiB) Viewed 2091 times
Pedro Alexandre

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Print a Receipt Ticket in Pdf

#4 Post by rdonnay »

That's great! Good work!
The eXpress train is coming - and it has more cars.

Post Reply