Hello people,
I hope one of you can help me. I have the problem that when I convert an HTML document to a pdf document via Node-Red that an image that is in the HTML file is not displayed. When I do the conversion manually through the console of my RevolutionPi, the image is displayed...
I create the HTML doc in advance via Node-Red and start the conversion process via the Exec Node using the tool wkhtmltopdf. Does anyone know where the error lies there or knows a suitable alternative that i can convert a HTML file to a pdf File? I am new to the topic and hope for your help!!!
Thanks a lot!
I would imagine that will be because of the location of the image file. Take a look at the HTML and see where the image is requested from. Perhaps your tool cannot get to the image - maybe it can't make web requests?
Thank you for your answer. But the path in the HTML Document is the same as the file is. When the tool couldn't get to the image, it shouldn't work when i make it manually. But this works...
Perhaps the tool doesn't like the image type?
Maybe switch to something like Pandoc?
Can you give us an example of the image urls that are not working for you? Is the html page served from a url, or in a local file?
I have had some mixed success with the HTML-PDF node... although the code is pretty old, and does not handle overly complicated html pages (or any dynamic JS/DOM manipulation).
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.