# Create PDF from HTML

**URL:** <https://discourse.nodered.org/t/create-pdf-from-html/33414>\
**Category:** General\
**Created:** [27 September 2020 16:45 UTC](https://discourse.nodered.org/t/create-pdf-from-html/33414 "2020-09-27T16:45:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RaiRoo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rairoo/32/32583_2.png) [@RaiRoo](https://discourse.nodered.org/u/RaiRoo)\
**Post date:** [27 September 2020 16:45 UTC](https://discourse.nodered.org/t/create-pdf-from-html/33414/1 "2020-09-27T16:45:46Z")

</div>

Hi,  
I try to create a PDF from HTM - and installed node-red-contrib-pdf for this. During installation I get errors

```auto
2020-09-27T16:28:45.619Z installieren : node-red-contrib-pdf 0.1.0

2020-09-27T16:28:45.624Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix="~" --production node-red-contrib-pdf@0.1.0
2020-09-27T16:28:49.577Z [err] npm
2020-09-27T16:28:49.578Z [err] WARN deprecated phantomjs-prebuilt@2.1.16: this package is now deprecated
2020-09-27T16:28:49.843Z [err] npm
2020-09-27T16:28:49.844Z [err] WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
2020-09-27T16:28:50.791Z [err] npm
2020-09-27T16:28:50.791Z [err] WARN deprecated har-validator@5.1.5: this library is no longer supported
2020-09-27T16:28:56.520Z [out] 
2020-09-27T16:28:56.520Z [out] > phantomjs-prebuilt@2.1.16 install /opt/iobroker/iobroker-data/node-red/node_modules/phantomjs-prebuilt
2020-09-27T16:28:56.520Z [out] > node install.js
2020-09-27T16:28:56.520Z [out] 
2020-09-27T16:28:57.210Z [out] PhantomJS not found on PATH
2020-09-27T16:28:57.230Z [out] Download already available at /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
2020-09-27T16:28:57.362Z [out] Verified checksum of previously downloaded file
2020-09-27T16:28:57.363Z [out] Extracting tar contents (via spawned process)
2020-09-27T16:29:05.068Z [out] Removing /opt/iobroker/iobroker-data/node-red/node_modules/phantomjs-prebuilt/lib/phantom
2020-09-27T16:29:05.070Z [out] Copying extracted folder /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1601224137362/phantomjs-2.1.1-linux-x86_64 -> /opt/iobroker/iobroker-data/node-red/node_modules/phantomjs-prebuilt/lib/phantom
2020-09-27T16:29:05.431Z [out] Writing location.js file
2020-09-27T16:29:05.432Z [out] Done. Phantomjs binary available at /opt/iobroker/iobroker-data/node-red/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs
2020-09-27T16:29:06.745Z [err] npm 
2020-09-27T16:29:06.745Z [err] WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents):
2020-09-27T16:29:06.745Z [err] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
2020-09-27T16:29:06.746Z [err] 
2020-09-27T16:29:06.749Z [out] + node-red-contrib-pdf@0.1.0
2020-09-27T16:29:06.749Z [out] added 60 packages from 65 contributors in 20.074s
2020-09-27T16:29:06.850Z rc=0

```

maybe caused by Phantomjs. Github says that Phantomjs is deprecated ....  
When executing a simple flow within node-red, I get the error message

```auto
140250012462720:error:25070067:DSO support routines:DSO_load:could not load the shared library:dso_lib.c:244:140250012462720:error:0E07506E:configuration file routines:MODULE_LOAD_DSO:error loading dso:conf_mod.c:285:module=ssl_conf, path=ssl_conf140250012462720:error:0E076071:configuration file routines:MODULE_RUN:unknown module name:conf_mod.c:222:module=ssl_conf

```

Any ideas on how to get PDFs from an HTML???

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [26 November 2020 16:46 UTC](https://discourse.nodered.org/t/create-pdf-from-html/33414/2 "2020-11-26T16:46:07Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
