我想将html转换为pdf文档。使用html-pdf npm模块,其中包含漏洞。https://snyk.io/vuln/SNYK-JS-HTMLPDF-467248
请提出替代解决方案。
[pdf有json。 https://www.npmjs.com/package/pdfkit非常受欢迎。您必须将现有模板从html转换为json,但它可以工作。
此外,您也可以使用config提供phantomjs参数
phantomArgs: ['--local-url-access=false']
Full details