andrey-ushakov / esc_pos_utils

Basic Flutter/Dart classes for ESC/POS printing
BSD 3-Clause "New" or "Revised" License
151 stars 340 forks source link

4inch shipping label #26

Open atik7 opened 4 years ago

atik7 commented 4 years ago

Hi,

How to set paper size for 4inch shipping label?

Thanks

hamzamon commented 3 years ago

Did you try

package: printing

final printers = await Printing.listPrinters(); await Printing.directPrintPdf( printer: printers[0], onLayout: (_) => _callPrint(PdfDoc.PdfPageFormat.a5));

But, I could't find how to send generated data to usb printer or a specific usb printer on windows. Can you help on this?