i am trying to use pdfkit to create a ticket for pos printer with a paper width of 80mm. The problem is that the height is variable and not set (like in html). Can this be done or i am thinking wrongly?
const doc = new PDF({
size: [80, "auto"??] // See other page sizes here: https://github.com/devongovett/pdfkit/blob/d95b826475dd325fb29ef007a9c1bf7a527e9808/lib/page.coffee#L69
info: {
Title: "blabla",
Author: "moi"
}, margins: {
top: 10,
bottom: 10,
left: 10,
right: 10
});
i do not find a way to do this in the documentation. Any suggestions? Thank you.
EDIT: I found this Epson ePOS SDK for JavaScript that i am going to test it.