Create a PDF with Node-Red and JSON

Have a look at this thread and the link to some examples.