# Getting error while converting html to pdf

**URL:** <https://discourse.nodered.org/t/getting-error-while-converting-html-to-pdf/74642>\
**Category:** General\
**Created:** [3 February 2023 09:25 UTC](https://discourse.nodered.org/t/getting-error-while-converting-html-to-pdf/74642 "2023-02-03T09:25:52Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [13 February 2023 10:05 UTC](https://discourse.nodered.org/t/getting-error-while-converting-html-to-pdf/74642/12 "2023-02-13T10:05:00Z")

</div>

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 `````)

````auto
``` 
   code goes here 
```

````

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

See this post for more details - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

---

_[View the full topic](https://discourse.nodered.org/t/getting-error-while-converting-html-to-pdf/74642)._
