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:

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 );
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
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:

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: