Node.js & 页面截图 & 生成画报


Node.js & 页面截图 & 生成画报

https://zzk.cnblogs.com/my/s/blogpost-p?Keywords=headless

solution

  1. 使用 template 页面的 iframe 内嵌 url
  2. node 渲染 template 页面, 导出 画报/PDF

puppeteer

Headless Chrome Node API

https://github.com/puppeteer/puppeteer
https://github.com/GoogleChrome/puppeteer

https://github.com/puppeteer/puppeteer#what-can-i-do

demos

https://try-puppeteer.appspot.com/

https://render-tron.appspot.com/

https://pptr.dev/

refs



©xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!



免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM