Mauri
15 June 2022 13:18
1
Hello everyone
I want to generate a pdf-file in Node-Red and use "node-red-contrib-pdfmake".
With the inject node I enter a json "content". Now my question, how do I create a layout in this file and can I add more text that is not in json format?
Below how I do this.
In addition, I cannot open the pfd file as long as node-red is running. What could be the reason for this?
Thanks for your help. Kind regards Mauri
Hi & welcome to the forum.
Yes. Check out the built in example (CTRL-I --> examples --> PDFMAKE)
Also, search the forum (there was a PDFMAKE thread only this week that will give you clues on how to generate sections)
Because using a fixed file name keeps the file open (for later additions)
In simple terms, dont specify a fixed file name, instead, pass the filename in via msg.filename
as is explained in the file node built in help.
Have a look at this thread and the link to some examples.
Mauri
15 June 2022 13:42
4
Thanks for your fast answers!
Can you link the thread please? I can't find it
Try this entry in particular from that thread
It demonstrates a few techniques - in particular adding text dynamically to the PDF document definition
system
Closed
14 August 2022 13:47
8
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.