@hillel is there a way to ensure the table stays together in case of a page break? Or enforce a page break if there’s not enough space left on the invoice?
EDIT: Found the solution myself, by adding
"unbreakable": true,
to the relevant section (src: https://github.com/bpampuch/pdfmake/issues/892)