Getting error while converting html to pdf

  1. I had to edit your post to make the flow importable - see footnote (1) below
  2. why do you have two file-out nodes witting to the same file?
  3. what does the data entering the function node look like? (please provide some sample data)

(footnote 1)

In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote ```)

``` 
   code goes here 
```

You can edit and correct your post by clicking the pencil :pencil2: icon.

See this post for more details - How to share code or flow json