I’ve been tasked of creating custom receipts with logos that can be dynamically generated.
So I’ve used html / css for creating templates and chrome in headless mode (puppeteer) to generate pdf (or alternatively images), of the receipt.
The issue I’m having is that when I try to print a pdf which has the correct size of the ticket, either:
- I set the page size of the printer and the receipt is cut in half
- I don’t set the page size and the printer keeps printing a blank receipt that does not stop until I turn it off.
Not sure where to look from there.