input file.txt (6.1 KB)
Well as you can see from the first 2 debug messages - the code I wrote is working - so where is that error coming from? I guess the PDF node?
Try removing (or rather dont add) any blank entries (in the Build Doc Def function, you add new lines after the header - try changing them to --------
instead)
thats my guess.
Then I suggest you open an issue on the nodes repo
As a test, this flow DOES generate a valid doc def - as you can see on the PDFMAKE playground
NOTE: You can grab a JSON copy of your generated doc def clicking the copy value button
I've just tried using some of the samples in the playground-area in this flow - they all work fine.
[{"id":"40aa0652.d1bf88","type":"pdfmake","z":"d089cbcf16e105d6","name":"","outputType":"Buffer","inputProperty":"payload","options":"{}","outputProperty":"payload","x":660,"y":940,"wires":[["97d255cf.8bc138"]]},{"id":"97d255cf.8bc138","type":"file","z":"d089cbcf16e105d6","name":"","filename":"test.pdf","appendNewline":true,"createDir":false,"overwriteFile":"true","encoding":"none","x":820,"y":940,"wires":[[]]},{"id":"da72935b.7c159","type":"comment","z":"d089cbcf16e105d6","name":"Simple Example PDF","info":"This is the simplest PDF test as seen in the pdfmake examples [here](http://pdfmake.org/playground.html)","x":180,"y":840,"wires":[]},{"id":"9b997e7b7e4ceccf","type":"function","z":"d089cbcf16e105d6","name":"Copy of playground material","func":"var dd = {\n\tcontent: [\n\t\t{\n\t\t\ttext: 'This is a header, using header style',\n\t\t\tstyle: 'header'\n\t\t},\n\t\t'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Confectum ponit legam, perferendis nomine miserum, animi. Moveat nesciunt triari naturam.\\n\\n',\n\t\t{\n\t\t\ttext: 'Subheader 1 - using subheader style',\n\t\t\tstyle: 'subheader'\n\t\t},\n\t\t'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Confectum ponit legam, perferendis nomine miserum, animi. Moveat nesciunt triari naturam posset, eveniunt specie deorsus efficiat sermone instituendarum fuisse veniat, eademque mutat debeo. Delectet plerique protervi diogenem dixerit logikh levius probabo adipiscuntur afficitur, factis magistra inprobitatem aliquo andriam obiecta, religionis, imitarentur studiis quam, clamat intereant vulgo admonitionem operis iudex stabilitas vacillare scriptum nixam, reperiri inveniri maestitiam istius eaque dissentias idcirco gravis, refert suscipiet recte sapiens oportet ipsam terentianus, perpauca sedatio aliena video.',\n\t\t'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Confectum ponit legam, perferendis nomine miserum, animi. Moveat nesciunt triari naturam posset, eveniunt specie deorsus efficiat sermone instituendarum fuisse veniat, eademque mutat debeo. Delectet plerique protervi diogenem dixerit logikh levius probabo adipiscuntur afficitur, factis magistra inprobitatem aliquo andriam obiecta, religionis, imitarentur studiis quam, clamat intereant vulgo admonitionem operis iudex stabilitas vacillare scriptum nixam, reperiri inveniri maestitiam istius eaque dissentias idcirco gravis, refert suscipiet recte sapiens oportet ipsam terentianus, perpauca sedatio aliena video.',\n\t\t'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Confectum ponit legam, perferendis nomine miserum, animi. Moveat nesciunt triari naturam posset, eveniunt specie deorsus efficiat sermone instituendarum fuisse veniat, eademque mutat debeo. Delectet plerique protervi diogenem dixerit logikh levius probabo adipiscuntur afficitur, factis magistra inprobitatem aliquo andriam obiecta, religionis, imitarentur studiis quam, clamat intereant vulgo admonitionem operis iudex stabilitas vacillare scriptum nixam, reperiri inveniri maestitiam istius eaque dissentias idcirco gravis, refert suscipiet recte sapiens oportet ipsam terentianus, perpauca sedatio aliena video.\\n\\n',\n\t\t{\n\t\t\ttext: 'Subheader 2 - using subheader style',\n\t\t\tstyle: 'subheader'\n\t\t},\n\t\t'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Confectum ponit legam, perferendis nomine miserum, animi. Moveat nesciunt triari naturam posset, eveniunt specie deorsus efficiat sermone instituendarum fuisse veniat, eademque mutat debeo. Delectet plerique protervi diogenem dixerit logikh levius probabo adipiscuntur afficitur, factis magistra inprobitatem aliquo andriam obiecta, religionis, imitarentur studiis quam, clamat intereant vulgo admonitionem operis iudex stabilitas vacillare scriptum nixam, reperiri inveniri maestitiam istius eaque dissentias idcirco gravis, refert suscipiet recte sapiens oportet ipsam terentianus, perpauca sedatio aliena video.',\n\t\t'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Confectum ponit legam, perferendis nomine miserum, animi. Moveat nesciunt triari naturam posset, eveniunt specie deorsus efficiat sermone instituendarum fuisse veniat, eademque mutat debeo. Delectet plerique protervi diogenem dixerit logikh levius probabo adipiscuntur afficitur, factis magistra inprobitatem aliquo andriam obiecta, religionis, imitarentur studiis quam, clamat intereant vulgo admonitionem operis iudex stabilitas vacillare scriptum nixam, reperiri inveniri maestitiam istius eaque dissentias idcirco gravis, refert suscipiet recte sapiens oportet ipsam terentianus, perpauca sedatio aliena video.\\n\\n',\n\t\t{\n\t\t\ttext: 'It is possible to apply multiple styles, by passing an array. This paragraph uses two styles: quote and small. When multiple styles are provided, they are evaluated in the specified order which is important in case they define the same properties',\n\t\t\tstyle: ['quote', 'small']\n\t\t}\n\t],\n\tstyles: {\n\t\theader: {\n\t\t\tfontSize: 18,\n\t\t\tbold: true\n\t\t},\n\t\tsubheader: {\n\t\t\tfontSize: 15,\n\t\t\tbold: true\n\t\t},\n\t\tquote: {\n\t\t\titalics: true\n\t\t},\n\t\tsmall: {\n\t\t\tfontSize: 8\n\t\t}\n\t}\n\t\n}\nmsg.payload = dd;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":440,"y":900,"wires":[["40aa0652.d1bf88"]]},{"id":"18e4a83d6be65994","type":"inject","z":"d089cbcf16e105d6","name":"Test - basic text","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":180,"y":900,"wires":[["9b997e7b7e4ceccf"]]},{"id":"3420d02cf37a9391","type":"function","z":"d089cbcf16e105d6","name":"Copy of playground material","func":"var dd = {\n\tcontent: [\n\t\t{text: 'Unordered list', style: 'header'},\n\t\t{\n\t\t\tul: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nUnordered list with longer lines', style: 'header'},\n\t\t{\n\t\t\tul: [\n\t\t\t\t'item 1',\n\t\t\t\t'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nOrdered list', style: 'header'},\n\t\t{\n\t\t\tol: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nOrdered list with longer lines', style: 'header'},\n\t\t{\n\t\t\tol: [\n\t\t\t\t'item 1',\n\t\t\t\t'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nOrdered list should be descending', style: 'header'},\n\t\t{\n\t\t\treversed: true,\n\t\t\tol: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nOrdered list with start value', style: 'header'},\n\t\t{\n\t\t\tstart: 50,\n\t\t\tol: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nOrdered list with own values', style: 'header'},\n\t\t{\n\t\t\tol: [\n\t\t\t\t{text: 'item 1', counter: 10},\n\t\t\t\t{text: 'item 2', counter: 20},\n\t\t\t\t{text: 'item 3', counter: 30},\n\t\t\t\t{text: 'item 4 without own value'}\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nNested lists (ordered)', style: 'header'},\n\t\t{\n\t\t\tol: [\n\t\t\t\t'item 1',\n\t\t\t\t[\n\t\t\t\t\t'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t{\n\t\t\t\t\t\tol: [\n\t\t\t\t\t\t\t'subitem 1',\n\t\t\t\t\t\t\t'subitem 2',\n\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t{text: [\n\t\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t]},\n\t\n\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t'subitem 4',\n\t\t\t\t\t\t\t'subitem 5',\n\t\t\t\t\t\t]\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t'item 3\\nsecond line of item3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nNested lists (unordered)', style: 'header'},\n\t\t{\n\t\t\tol: [\n\t\t\t\t'item 1',\n\t\t\t\t'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t{\n\t\t\t\t\tul: [\n\t\t\t\t\t\t'subitem 1',\n\t\t\t\t\t\t'subitem 2',\n\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t{text: [\n\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t]},\n\t\n\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t'subitem 4',\n\t\t\t\t\t\t'subitem 5',\n\t\t\t\t\t]\n\t\t\t\t},\n\t\t\t\t'item 3\\nsecond line of item3',\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nUnordered lists inside columns', style: 'header'},\n\t\t{\n\t\t\tcolumns: [\n\t\t\t\t{\n\t\t\t\t\tul: [\n\t\t\t\t\t\t'item 1',\n\t\t\t\t\t\t'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t]\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tul: [\n\t\t\t\t\t\t'item 1',\n\t\t\t\t\t\t'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nOrdered lists inside columns', style: 'header'},\n\t\t{\n\t\t\tcolumns: [\n\t\t\t\t{\n\t\t\t\t\tol: [\n\t\t\t\t\t\t'item 1',\n\t\t\t\t\t\t'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t]\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tol: [\n\t\t\t\t\t\t'item 1',\n\t\t\t\t\t\t'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nNested lists width columns', style: 'header'},\n\t\t{\n\t\t\tul: [\n\t\t\t\t'item 1',\n\t\t\t\t'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t{\n\t\t\t\t\tol: [\n\t\t\t\t\t\t[\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcolumns: [\n\t\t\t\t\t\t\t\t\t'column 1',\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tstack: [\n\t\t\t\t\t\t\t\t\t\t\t'column 2',\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tul: [\n\t\t\t\t\t\t\t\t\t\t\t\t\t'item 1',\n\t\t\t\t\t\t\t\t\t\t\t\t\t'item 2',\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tul: [\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'item',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'item',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'item',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t'item 4',\n\t\t\t\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t'column 3',\n\t\t\t\t\t\t\t\t\t'column 4',\n\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t'subitem 1 in a vertical container',\n\t\t\t\t\t\t\t'subitem 2 in a vertical container',\n\t\t\t\t\t\t],\n\t\t\t\t\t\t'subitem 2',\n\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t{text: [\n\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t]},\n\t\n\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t'subitem 4',\n\t\t\t\t\t\t'subitem 5',\n\t\t\t\t\t]\n\t\t\t\t},\n\t\t\t\t'item 3\\nsecond line of item3',\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nUnordered list with square marker type', style: 'header'},\n\t\t{\n\t\t\ttype: 'square',\n\t\t\tul: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nUnordered list with circle marker type', style: 'header'},\n\t\t{\n\t\t\ttype: 'circle',\n\t\t\tul: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nColored unordered list', style: 'header'},\n\t\t{\n\t\t\tcolor: 'blue',\n\t\t\tul: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nColored unordered list with own marker color', style: 'header'},\n\t\t{\n\t\t\tcolor: 'blue',\n\t\t\tmarkerColor: 'red',\n\t\t\tul: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nColored ordered list', style: 'header'},\n\t\t{\n\t\t\tcolor: 'blue',\n\t\t\tol: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nColored ordered list with own marker color', style: 'header'},\n\t\t{\n\t\t\tcolor: 'blue',\n\t\t\tmarkerColor: 'red',\n\t\t\tol: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nOrdered list - type: lower-alpha', style: 'header'},\n\t\t{\n\t\t\ttype: 'lower-alpha',\n\t\t\tol: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nOrdered list - type: upper-alpha', style: 'header'},\n\t\t{\n\t\t\ttype: 'upper-alpha',\n\t\t\tol: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\n\t\t{text: '\\n\\nOrdered list - type: upper-roman', style: 'header'},\n\t\t{\n\t\t\ttype: 'upper-roman',\n\t\t\tol: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3',\n\t\t\t\t'item 4',\n\t\t\t\t'item 5'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nOrdered list - type: lower-roman', style: 'header'},\n\t\t{\n\t\t\ttype: 'lower-roman',\n\t\t\tol: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3',\n\t\t\t\t'item 4',\n\t\t\t\t'item 5'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nOrdered list - type: none', style: 'header'},\n\t\t{\n\t\t\ttype: 'none',\n\t\t\tol: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nUnordered list - type: none', style: 'header'},\n\t\t{\n\t\t\ttype: 'none',\n\t\t\tul: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nOrdered list with own separator', style: 'header'},\n\t\t{\n\t\t\tseparator: ')',\n\t\t\tol: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nOrdered list with own complex separator', style: 'header'},\n\t\t{\n\t\t\tseparator: ['(', ')'],\n\t\t\tol: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nOrdered list with own items type', style: 'header'},\n\t\t{\n\t\t\tol: [\n\t\t\t\t'item 1',\n\t\t\t\t{text: 'item 2', listType: 'none'},\n\t\t\t\t{text: 'item 3', listType: 'upper-roman'}\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nUnordered list with own items type', style: 'header'},\n\t\t{\n\t\t\tul: [\n\t\t\t\t'item 1',\n\t\t\t\t{text: 'item 2', listType: 'none'},\n\t\t\t\t{text: 'item 3', listType: 'circle'}\n\t\t\t]\n\t\t},\n\t],\n\tstyles: {\n\t\theader: {\n\t\t\tbold: true,\n\t\t\tfontSize: 15\n\t\t}\n\t},\n\tdefaultStyle: {\n\t\tfontSize: 12\n\t}\n\t\n}\n\n\nmsg.payload = dd;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":440,"y":980,"wires":[["40aa0652.d1bf88"]]},{"id":"b38149c3f9f9b8a4","type":"inject","z":"d089cbcf16e105d6","name":"Test - basic LISTS","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":190,"y":980,"wires":[["3420d02cf37a9391"]]}]
Dave, I dont have PDFMAKE installed - below is the output of @chawana test flow - could you see if that generates a working PDF?
The doc def...
{"pageSize":"A4","pageOrientation":"portrait","pageMargins":[40,60,40,60],"info":{"title":"awesome Document","author":"john doe","subject":"subject of document","keywords":"keywords for document"},"content":[{"text":"PDF Shift-Report","style":"header"},"\n\n","----------------------------------------}","1124507+5_G}","Board Version: **BASE**}","Board 1 Fail}","Fri Jun 10 15:19:09 2022}","----------------------------------------}","1%mt3%presence HAS FAILED}","Measured: 18.575}","Threshold: 15.000}","Jumper Resistance in OHMS}","----------------------------------------}","Check for MT3 presence.}","----------------------------------------}","Board #: 1 }","Version:}","S/N:Z450718ZP0-1}","----------------------------------------}","1124507+5_G}","Board Version: **BASE**}","Board 1 Fail}","Fri Jun 10 15:19:13 2022}","----------------------------------------}","1%mt3%presence HAS FAILED}","Measured: 39.611}","Threshold: 15.000}","Jumper Resistance in OHMS}","----------------------------------------}","Check for MT3 presence.}","----------------------------------------}","----------------------------------------}","Board #: 1 }","Version:}","S/N:Z450718ZP0-1}","----------------------------------------}","1124507+5_G}","Board Version: **BASE**}","Board 1 Fail}","Fri Jun 10 15:19:18 2022}","----------------------------------------}","1%mt3%presence HAS FAILED}","Measured: 15.482}","Threshold: 15.000}","Jumper Resistance in OHMS}","----------------------------------------}","Check for MT3 presence.}","----------------------------------------}","Serial #: Z450718ZP0}","Oper&Fix ID# T2104254IFX-RN009-AR-A-002}"],"styles":{"header":{"fontSize":18,"bold":true},"subheader":{"fontSize":15,"bold":true},"center":{"alignment":"center"}}}
I had to 'top' and 'tail' the output you posted.
Seems to create a PDF although I have no idea if it is correct.
I had to take two screen-shots as the PDF was too long for my screen.
I've attached my test flow in case @chawana wants to try it out.
Hope this helps.
[{"id":"40aa0652.d1bf88","type":"pdfmake","z":"d089cbcf16e105d6","name":"","outputType":"Buffer","inputProperty":"payload","options":"{}","outputProperty":"payload","x":660,"y":940,"wires":[["97d255cf.8bc138"]]},{"id":"97d255cf.8bc138","type":"file","z":"d089cbcf16e105d6","name":"","filename":"test.pdf","appendNewline":true,"createDir":false,"overwriteFile":"true","encoding":"none","x":820,"y":940,"wires":[[]]},{"id":"da72935b.7c159","type":"comment","z":"d089cbcf16e105d6","name":"Simple Example PDF","info":"This is the simplest PDF test as seen in the pdfmake examples [here](http://pdfmake.org/playground.html)","x":180,"y":840,"wires":[]},{"id":"9b997e7b7e4ceccf","type":"function","z":"d089cbcf16e105d6","name":"Copy of playground material","func":"var dd = {\n\tcontent: [\n\t\t{\n\t\t\ttext: 'This is a header, using header style',\n\t\t\tstyle: 'header'\n\t\t},\n\t\t'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Confectum ponit legam, perferendis nomine miserum, animi. Moveat nesciunt triari naturam.\\n\\n',\n\t\t{\n\t\t\ttext: 'Subheader 1 - using subheader style',\n\t\t\tstyle: 'subheader'\n\t\t},\n\t\t'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Confectum ponit legam, perferendis nomine miserum, animi. Moveat nesciunt triari naturam posset, eveniunt specie deorsus efficiat sermone instituendarum fuisse veniat, eademque mutat debeo. Delectet plerique protervi diogenem dixerit logikh levius probabo adipiscuntur afficitur, factis magistra inprobitatem aliquo andriam obiecta, religionis, imitarentur studiis quam, clamat intereant vulgo admonitionem operis iudex stabilitas vacillare scriptum nixam, reperiri inveniri maestitiam istius eaque dissentias idcirco gravis, refert suscipiet recte sapiens oportet ipsam terentianus, perpauca sedatio aliena video.',\n\t\t'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Confectum ponit legam, perferendis nomine miserum, animi. Moveat nesciunt triari naturam posset, eveniunt specie deorsus efficiat sermone instituendarum fuisse veniat, eademque mutat debeo. Delectet plerique protervi diogenem dixerit logikh levius probabo adipiscuntur afficitur, factis magistra inprobitatem aliquo andriam obiecta, religionis, imitarentur studiis quam, clamat intereant vulgo admonitionem operis iudex stabilitas vacillare scriptum nixam, reperiri inveniri maestitiam istius eaque dissentias idcirco gravis, refert suscipiet recte sapiens oportet ipsam terentianus, perpauca sedatio aliena video.',\n\t\t'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Confectum ponit legam, perferendis nomine miserum, animi. Moveat nesciunt triari naturam posset, eveniunt specie deorsus efficiat sermone instituendarum fuisse veniat, eademque mutat debeo. Delectet plerique protervi diogenem dixerit logikh levius probabo adipiscuntur afficitur, factis magistra inprobitatem aliquo andriam obiecta, religionis, imitarentur studiis quam, clamat intereant vulgo admonitionem operis iudex stabilitas vacillare scriptum nixam, reperiri inveniri maestitiam istius eaque dissentias idcirco gravis, refert suscipiet recte sapiens oportet ipsam terentianus, perpauca sedatio aliena video.\\n\\n',\n\t\t{\n\t\t\ttext: 'Subheader 2 - using subheader style',\n\t\t\tstyle: 'subheader'\n\t\t},\n\t\t'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Confectum ponit legam, perferendis nomine miserum, animi. Moveat nesciunt triari naturam posset, eveniunt specie deorsus efficiat sermone instituendarum fuisse veniat, eademque mutat debeo. Delectet plerique protervi diogenem dixerit logikh levius probabo adipiscuntur afficitur, factis magistra inprobitatem aliquo andriam obiecta, religionis, imitarentur studiis quam, clamat intereant vulgo admonitionem operis iudex stabilitas vacillare scriptum nixam, reperiri inveniri maestitiam istius eaque dissentias idcirco gravis, refert suscipiet recte sapiens oportet ipsam terentianus, perpauca sedatio aliena video.',\n\t\t'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Confectum ponit legam, perferendis nomine miserum, animi. Moveat nesciunt triari naturam posset, eveniunt specie deorsus efficiat sermone instituendarum fuisse veniat, eademque mutat debeo. Delectet plerique protervi diogenem dixerit logikh levius probabo adipiscuntur afficitur, factis magistra inprobitatem aliquo andriam obiecta, religionis, imitarentur studiis quam, clamat intereant vulgo admonitionem operis iudex stabilitas vacillare scriptum nixam, reperiri inveniri maestitiam istius eaque dissentias idcirco gravis, refert suscipiet recte sapiens oportet ipsam terentianus, perpauca sedatio aliena video.\\n\\n',\n\t\t{\n\t\t\ttext: 'It is possible to apply multiple styles, by passing an array. This paragraph uses two styles: quote and small. When multiple styles are provided, they are evaluated in the specified order which is important in case they define the same properties',\n\t\t\tstyle: ['quote', 'small']\n\t\t}\n\t],\n\tstyles: {\n\t\theader: {\n\t\t\tfontSize: 18,\n\t\t\tbold: true\n\t\t},\n\t\tsubheader: {\n\t\t\tfontSize: 15,\n\t\t\tbold: true\n\t\t},\n\t\tquote: {\n\t\t\titalics: true\n\t\t},\n\t\tsmall: {\n\t\t\tfontSize: 8\n\t\t}\n\t}\n\t\n}\nmsg.payload = dd;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":440,"y":900,"wires":[["40aa0652.d1bf88"]]},{"id":"18e4a83d6be65994","type":"inject","z":"d089cbcf16e105d6","name":"Test - basic text","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":180,"y":900,"wires":[["9b997e7b7e4ceccf"]]},{"id":"3420d02cf37a9391","type":"function","z":"d089cbcf16e105d6","name":"Copy of playground material","func":"var dd = {\n\tcontent: [\n\t\t{text: 'Unordered list', style: 'header'},\n\t\t{\n\t\t\tul: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nUnordered list with longer lines', style: 'header'},\n\t\t{\n\t\t\tul: [\n\t\t\t\t'item 1',\n\t\t\t\t'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nOrdered list', style: 'header'},\n\t\t{\n\t\t\tol: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nOrdered list with longer lines', style: 'header'},\n\t\t{\n\t\t\tol: [\n\t\t\t\t'item 1',\n\t\t\t\t'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nOrdered list should be descending', style: 'header'},\n\t\t{\n\t\t\treversed: true,\n\t\t\tol: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nOrdered list with start value', style: 'header'},\n\t\t{\n\t\t\tstart: 50,\n\t\t\tol: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nOrdered list with own values', style: 'header'},\n\t\t{\n\t\t\tol: [\n\t\t\t\t{text: 'item 1', counter: 10},\n\t\t\t\t{text: 'item 2', counter: 20},\n\t\t\t\t{text: 'item 3', counter: 30},\n\t\t\t\t{text: 'item 4 without own value'}\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nNested lists (ordered)', style: 'header'},\n\t\t{\n\t\t\tol: [\n\t\t\t\t'item 1',\n\t\t\t\t[\n\t\t\t\t\t'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t{\n\t\t\t\t\t\tol: [\n\t\t\t\t\t\t\t'subitem 1',\n\t\t\t\t\t\t\t'subitem 2',\n\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t{text: [\n\t\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t]},\n\t\n\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t'subitem 4',\n\t\t\t\t\t\t\t'subitem 5',\n\t\t\t\t\t\t]\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t'item 3\\nsecond line of item3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nNested lists (unordered)', style: 'header'},\n\t\t{\n\t\t\tol: [\n\t\t\t\t'item 1',\n\t\t\t\t'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t{\n\t\t\t\t\tul: [\n\t\t\t\t\t\t'subitem 1',\n\t\t\t\t\t\t'subitem 2',\n\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t{text: [\n\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t]},\n\t\n\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t'subitem 4',\n\t\t\t\t\t\t'subitem 5',\n\t\t\t\t\t]\n\t\t\t\t},\n\t\t\t\t'item 3\\nsecond line of item3',\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nUnordered lists inside columns', style: 'header'},\n\t\t{\n\t\t\tcolumns: [\n\t\t\t\t{\n\t\t\t\t\tul: [\n\t\t\t\t\t\t'item 1',\n\t\t\t\t\t\t'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t]\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tul: [\n\t\t\t\t\t\t'item 1',\n\t\t\t\t\t\t'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nOrdered lists inside columns', style: 'header'},\n\t\t{\n\t\t\tcolumns: [\n\t\t\t\t{\n\t\t\t\t\tol: [\n\t\t\t\t\t\t'item 1',\n\t\t\t\t\t\t'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t]\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tol: [\n\t\t\t\t\t\t'item 1',\n\t\t\t\t\t\t'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nNested lists width columns', style: 'header'},\n\t\t{\n\t\t\tul: [\n\t\t\t\t'item 1',\n\t\t\t\t'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t{\n\t\t\t\t\tol: [\n\t\t\t\t\t\t[\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcolumns: [\n\t\t\t\t\t\t\t\t\t'column 1',\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tstack: [\n\t\t\t\t\t\t\t\t\t\t\t'column 2',\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tul: [\n\t\t\t\t\t\t\t\t\t\t\t\t\t'item 1',\n\t\t\t\t\t\t\t\t\t\t\t\t\t'item 2',\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tul: [\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'item',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'item',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'item',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t'item 4',\n\t\t\t\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t'column 3',\n\t\t\t\t\t\t\t\t\t'column 4',\n\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t'subitem 1 in a vertical container',\n\t\t\t\t\t\t\t'subitem 2 in a vertical container',\n\t\t\t\t\t\t],\n\t\t\t\t\t\t'subitem 2',\n\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t{text: [\n\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t\t]},\n\t\n\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t'subitem 3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit',\n\t\t\t\t\t\t'subitem 4',\n\t\t\t\t\t\t'subitem 5',\n\t\t\t\t\t]\n\t\t\t\t},\n\t\t\t\t'item 3\\nsecond line of item3',\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nUnordered list with square marker type', style: 'header'},\n\t\t{\n\t\t\ttype: 'square',\n\t\t\tul: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nUnordered list with circle marker type', style: 'header'},\n\t\t{\n\t\t\ttype: 'circle',\n\t\t\tul: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nColored unordered list', style: 'header'},\n\t\t{\n\t\t\tcolor: 'blue',\n\t\t\tul: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nColored unordered list with own marker color', style: 'header'},\n\t\t{\n\t\t\tcolor: 'blue',\n\t\t\tmarkerColor: 'red',\n\t\t\tul: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nColored ordered list', style: 'header'},\n\t\t{\n\t\t\tcolor: 'blue',\n\t\t\tol: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nColored ordered list with own marker color', style: 'header'},\n\t\t{\n\t\t\tcolor: 'blue',\n\t\t\tmarkerColor: 'red',\n\t\t\tol: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nOrdered list - type: lower-alpha', style: 'header'},\n\t\t{\n\t\t\ttype: 'lower-alpha',\n\t\t\tol: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nOrdered list - type: upper-alpha', style: 'header'},\n\t\t{\n\t\t\ttype: 'upper-alpha',\n\t\t\tol: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\n\t\t{text: '\\n\\nOrdered list - type: upper-roman', style: 'header'},\n\t\t{\n\t\t\ttype: 'upper-roman',\n\t\t\tol: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3',\n\t\t\t\t'item 4',\n\t\t\t\t'item 5'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nOrdered list - type: lower-roman', style: 'header'},\n\t\t{\n\t\t\ttype: 'lower-roman',\n\t\t\tol: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3',\n\t\t\t\t'item 4',\n\t\t\t\t'item 5'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nOrdered list - type: none', style: 'header'},\n\t\t{\n\t\t\ttype: 'none',\n\t\t\tol: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nUnordered list - type: none', style: 'header'},\n\t\t{\n\t\t\ttype: 'none',\n\t\t\tul: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nOrdered list with own separator', style: 'header'},\n\t\t{\n\t\t\tseparator: ')',\n\t\t\tol: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nOrdered list with own complex separator', style: 'header'},\n\t\t{\n\t\t\tseparator: ['(', ')'],\n\t\t\tol: [\n\t\t\t\t'item 1',\n\t\t\t\t'item 2',\n\t\t\t\t'item 3'\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nOrdered list with own items type', style: 'header'},\n\t\t{\n\t\t\tol: [\n\t\t\t\t'item 1',\n\t\t\t\t{text: 'item 2', listType: 'none'},\n\t\t\t\t{text: 'item 3', listType: 'upper-roman'}\n\t\t\t]\n\t\t},\n\t\t{text: '\\n\\nUnordered list with own items type', style: 'header'},\n\t\t{\n\t\t\tul: [\n\t\t\t\t'item 1',\n\t\t\t\t{text: 'item 2', listType: 'none'},\n\t\t\t\t{text: 'item 3', listType: 'circle'}\n\t\t\t]\n\t\t},\n\t],\n\tstyles: {\n\t\theader: {\n\t\t\tbold: true,\n\t\t\tfontSize: 15\n\t\t}\n\t},\n\tdefaultStyle: {\n\t\tfontSize: 12\n\t}\n\t\n}\n\n\nmsg.payload = dd;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":440,"y":980,"wires":[["40aa0652.d1bf88"]]},{"id":"b38149c3f9f9b8a4","type":"inject","z":"d089cbcf16e105d6","name":"Test - basic LISTS","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":190,"y":980,"wires":[["3420d02cf37a9391"]]},{"id":"9c36b7f3e620cdac","type":"function","z":"d089cbcf16e105d6","name":"Material supplied by Steve","func":"var dd = {\"pageSize\":\"A4\",\"pageOrientation\":\"portrait\",\"pageMargins\":[40,60,40,60],\"info\":{\"title\":\"awesome Document\",\"author\":\"john doe\",\"subject\":\"subject of document\",\"keywords\":\"keywords for document\"},\"content\":[{\"text\":\"PDF Shift-Report\",\"style\":\"header\"},\"\\n\\n\",\"----------------------------------------}\",\"1124507+5_G}\",\"Board Version: **BASE**}\",\"Board 1 Fail}\",\"Fri Jun 10 15:19:09 2022}\",\"----------------------------------------}\",\"1%mt3%presence HAS FAILED}\",\"Measured: 18.575}\",\"Threshold: 15.000}\",\"Jumper Resistance in OHMS}\",\"----------------------------------------}\",\"Check for MT3 presence.}\",\"----------------------------------------}\",\"Board #: 1 }\",\"Version:}\",\"S/N:Z450718ZP0-1}\",\"----------------------------------------}\",\"1124507+5_G}\",\"Board Version: **BASE**}\",\"Board 1 Fail}\",\"Fri Jun 10 15:19:13 2022}\",\"----------------------------------------}\",\"1%mt3%presence HAS FAILED}\",\"Measured: 39.611}\",\"Threshold: 15.000}\",\"Jumper Resistance in OHMS}\",\"----------------------------------------}\",\"Check for MT3 presence.}\",\"----------------------------------------}\",\"----------------------------------------}\",\"Board #: 1 }\",\"Version:}\",\"S/N:Z450718ZP0-1}\",\"----------------------------------------}\",\"1124507+5_G}\",\"Board Version: **BASE**}\",\"Board 1 Fail}\",\"Fri Jun 10 15:19:18 2022}\",\"----------------------------------------}\",\"1%mt3%presence HAS FAILED}\",\"Measured: 15.482}\",\"Threshold: 15.000}\",\"Jumper Resistance in OHMS}\",\"----------------------------------------}\",\"Check for MT3 presence.}\",\"----------------------------------------}\",\"Serial #: Z450718ZP0}\",\"Oper&Fix ID# T2104254IFX-RN009-AR-A-002}\"],\"styles\":{\"header\":{\"fontSize\":18,\"bold\":true},\"subheader\":{\"fontSize\":15,\"bold\":true},\"center\":{\"alignment\":\"center\"}}}\n\nmsg.payload = dd;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":440,"y":1040,"wires":[["40aa0652.d1bf88"]]},{"id":"d220caf39a551c54","type":"inject","z":"d089cbcf16e105d6","name":"Test - basic LISTS","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":190,"y":1040,"wires":[["9c36b7f3e620cdac"]]}]
Thats fine - just wanted to verify the flow I did for the OP actually generates a useable document definition that generates a useable PDF.
@Steve-Mcl @dynamicdave Thank you so much that is work fine for me.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.