Rendering html to pdf or image
Your server is equipped to perform html to pdf andor image rendering from the command line:
WkHtmlToPdf
NodeWkHtmlToPdf is ready to use, it can be invoked via the nodewkhtmltopdf command. The version installed on 01/10/2023 is 18.0.12.6.
> nodewkhtmltopdf -vV
v18.18.2
wkhtmltopdf If0.12.6.1 you(with wantpatched to use another version of Node, you will find them in the following paths:
/opt/plesk/node/18/bin/node
/opt/plesk/node/20/bin/node
/opt/plesk/node/21/bin/node
Please note that available NodeJS versions on Hosterra servers evolve over time. We systematically remove any old version that is no longer being maintained for security. We add any new version as soon as it is available.
NPM & NPX
NPM and NPX are also ready to use via the npm and npx commands.
> npm -v
10.2.2qt)
Note that the NPMWkHtmlToPdf and NPX versionsversion available on Hosterra servers are always the most recent versions.version.
WkHtmlToImage
WkHtmlToImage is ready to use, it can be invoked via the wkhtmltoimage command. The version installed on 01/10/2023 is 0.12.6.
> wkhtmltoimage -V
wkhtmltoimage 0.12.6.1 (with patched qt)
Note that the WkHtmlToImage version available on Hosterra servers are always the most recent version.