Printing receipts has page breaks

Printing receipts has page breaks

When using a thermal printer and printing invoices for deliveries the submitted file has page breaks and a bunch of empty space at the end. Is there a way to have the invoice come out as a continuous piece with no page breaks and stop printing at the end of the text? Thank you