andriyoganp / blue_print_pos

Helper to use bluetooth print in Android and iOS
Apache License 2.0
34 stars 78 forks source link

PaperSize parameter is not working #54

Closed Roldification closed 2 years ago

Roldification commented 2 years ago

Future printReceiptText( ReceiptSectionText receiptSectionText, { int feedCount = 0, bool useCut = false, bool useRaster = false, double duration = 0, PaperSize paperSize = PaperSize.mm58, }) async { final Uint8List bytes = await contentToImage( content: receiptSectionText.content, duration: duration, ); final List byteBuffer = await _getBytes( bytes, paperSize: PaperSize.mm58, feedCount: feedCount, useCut: useCut, useRaster: useRaster, ); _printProcess(byteBuffer); }

kindly fix the PaperSize parameter. it is statically set to PaperSize.mm58 we cannot change size because of that. Thanks!

andriyoganp commented 2 years ago

Solved in here #52