1. 根据html生成pdf
chrome.exe --headless --disable-gpu --print-to-pdf ...../index.html
2. puppeteer --- nodejs chrome headless 操作库(文档)
这个库可以在nodejs实现 绝大部分的浏览器动作,截图、爬虫.....
具体代码看官方文档,十分详尽
1. 根据html生成pdf
chrome.exe --headless --disable-gpu --print-to-pdf ...../index.html
2. puppeteer --- nodejs chrome headless 操作库(文档)
这个库可以在nodejs实现 绝大部分的浏览器动作,截图、爬虫.....
具体代码看官方文档,十分详尽
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。