Aymkdn / html-to-pdfmake

This module permits to convert HTML to the PDFMake format
https://aymkdn.github.io/html-to-pdfmake/index.html
MIT License
545 stars 88 forks source link

Feature request: handle and support invalid image #202

Closed febriyoga-bs closed 7 months ago

febriyoga-bs commented 7 months ago

I have pdfmake content like this:

{ "nodeName": "P", "stack": [ { "nodeName": "IMG", "image": "https://i.ibb.co/dLq0C7M/IEF-Website-Mapping-4.png", "style": [ "html-img", "html-p" ] } ] }

I want the feature that can handle this error error

Aymkdn commented 7 months ago

To load images from an URL, you need to generate the PDF in a web browser. If you try to generate it from a command line with Node, it won't work.

Please, see the documentation: https://github.com/Aymkdn/html-to-pdfmake#img