Skip to content

Prints large space after printing the receipt  #75

Description

@A7mdlbanna

When I print an invoice it prints more space after the data I want to print (Its size changes with the size of the total printed data)

note: the extra space doesn't exist when I take the HTML code and turn it into an image.
and also when I use

Uint8List invoiceImageBytes = await BluePrintPos.contentToImage(content: receiptText.content);

the output is the invoice with borders on the sides (right, bottom) but with no extra space in the invoice.

but when I use my printer this is what it looks like:
invoice

could you please tell me how to avoid getting the space or stopping printing after reaching the end of the data?

and here is the code to start printing the invoice:

    await bluePrintPos.printReceiptText(receiptText, feedCount: 0, useRaster: true,paperSize: utils.PaperSize.mm80 );

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions