The construction of the message is simplified by tags to create personalized tickets according to your needs.
Variable |
Example |
|
---|---|---|
Line break | <BR> | Hello<BR>John |
Bold text | <BOLD></BOLD> | <BOLD>Hello</BOLD> |
Centered text with double height | <CB></CB> | <CB>Hello</CB> |
Centered text | <C></C> | <C>Hello</C> |
Double height | <L></L> | <L>Hello</L> |
Double width | <W></W> | <W>Hello</W> |
Text Example + Image + Autocut
// Your message
$msg = "<IMG>https://www.printer-point.com/docs/img/logo_keep_calm.jpg</IMG>
<CB>KEEP</CB>
<CB>CALM</CB>
<C>AND</C>
<CB>LOVE</CB>
<CB>PRINTER</CB><CUT/>";
Example receipts for a restaurant + Logo + Massicot
// Your message
$msg = "<IMG>https://www.printer-point.com/docs/img/logo_keep_calm.jpg</IMG>
<L>COMMANDE YKMNEQ</L>15/04/2021 16:22
CASH<L><CB>DELIVERY</CB></L><L><CB>01/01/1970
01:00</CB></L>
<L><CB>JOHN SMITH</CB></L><C>1 RUE DE LA LIBERTE
ADRESSE 2
76000 ROUEN
</C><L><CB>0601010101</CB></L><C>john@mail.com</C>
<C><BOLD><L>COMMENTAIRE</L></BOLD></C>
<C> Bld: bat3, Flr: site5, Door: porte8
me le deposer devant la porte svp</C>
------------------------------------------------
# | Produit | Prix
------------------------------------------------
<L>Lunch box :</L>1.0 X ZD273752 Poke Saumon 13.00e
1.0 X ZD275419 Coke 33cl 0.00e
1.0 X ZD273958 Box 1 - 20Pcs 22.90e
Miso Soup +0.00e
2 Sweet +0.60e
2 Ginger +0.60e
________________________________________________
TOTAL H.T: 37.10e
TVA: 0.00e
<BOLD>TOTAL TTC: 37.10e</BOLD>LIVRAISON: 12.00e
<L>TOTAL A PAYER: 49.10e</L>
------------------------------------------------<CUT/>";
Comments
0 comments
Please sign in to leave a comment.