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