esc_pos_utils icon indicating copy to clipboard operation
esc_pos_utils copied to clipboard

How to preview a ticket before printing

Open Denis3107 opened this issue 2 years ago • 2 comments

I found this example, can someone tell me how to do it

photo_2022-04-12_14-26-07

Denis3107 avatar Apr 14 '22 11:04 Denis3107

You can use the screenshot package, just show the widget, then capture and print it. for better usage of this package, you can also use the pos_printer_manager package.

steps to implement:

  1. create a widget for what you want to print.
  2. capture it as an image(uint8list)
  3. generate bytes
  4. print

Abdulazeezvp avatar Apr 14 '22 15:04 Abdulazeezvp

on click you can make new page and pass the value of the data and on that page you can make a button to print and navigate into the print page

TGkishan avatar May 19 '23 13:05 TGkishan