How to generate the PDF from Node-Red

Here are a couple of links to some of the threads @Steve-Mcl mentioned.

Here's a link to the "playground" with many examples of creating documents with different layouts.
http://pdfmake.org/playground.html