msbsurfi Posted April 8 Posted April 8 Username: msbsurfi Hello, I have an NodeJs app that uses html-pdf (It is needed for specific purpose: It correctly handles the Bengali Unicode characters, others like pdfmake or pdfkit cannot) runs well in my local PC environment but in plesk it shows an error regarding html-pdf. I have checked other things (file permission, directory permission are ok) and they are ok. The error shows conf_def.c file missing a equal sign but I do not find the file in plesk directory search. Can you please address the issue why html-pdf not being installed correctly. Best Regards, MD Shifat Bin Siddique Quote
wolstech Posted April 8 Posted April 8 Are you using the same version of node? Is there a config file for it that you can edit? Krydos might be able to figure this out for you, but be aware that Google suggests that this library is discontinued because it used a dependency of its own (phantomjs) that is obsolete and no longer supported. Last release was in 2021... Quote
msbsurfi Posted April 8 Author Posted April 8 27 minutes ago, wolstech said: Are you using the same version of node? Yes, I just tried with Node version 22 that I use in my PC. 28 minutes ago, wolstech said: Is there a config file for it that you can edit? I am not sure. I have just deployed the app.js according the heliohost wiki. 29 minutes ago, wolstech said: be aware that Google suggests that this library is discontinued Yes I found it when looking for solutions in Google. But as it fits my requirements to generate pdfs in Bengali it will be great if can be implemented. This app has just a simple task to generate pdfs based on a template, so I and others can Generate pdfs just from mobile without using a word processor. Quote
Krydos Posted April 9 Posted April 9 9 hours ago, msbsurfi said: I just tried with Node version 22 that I use in my PC. What operating system does your home PC use? Quote
wolstech Posted Sunday at 10:07 PM Posted Sunday at 10:07 PM Response below from Krydos was lost due to a backup restoration: Quote Johnny runs Alma Linux 9, and PhantomJS hasn't been updated for 9 years. The errors you're seeing are because Johnny has too new of an OpenSSL that PhantomJS doesn't understand. I believe there are also some issues with other dependencies such as glibc too. I tested PhantomJS on Ubuntu 24, and Ubuntu 22. Neither works. You would have to build an Ubuntu 20 VPS to run PhantomJS, but that operating system reaches end of security support in 1 month, and active support ended 2.5 years ago. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.