Create PDF from HTML

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

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

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???

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