Create a PDF with Node-Red and JSON

Try this entry in particular from that thread

It demonstrates a few techniques - in particular adding text dynamically to the PDF document definition