Skip to content

generate pdf report with html, javascript, etc...

Notifications You must be signed in to change notification settings

ningy123/disease-report

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

npm test

npm run build

npm run eject

过程

  • 遍历当前网页的DOM结构,收集所有DOM树上每个节点的元素信息及相应样式,渲染出canvas图像。这个遍历和渲染操作封装在脚本文件html2canvas.js里
  • 利用一个开源的JavaScript库,jsPDF,在浏览器端用JavaScript生成PDF文件

相关文档

参考文章:https://juejin.im/post/5d036a78f265da1bce3dcd40

About

generate pdf report with html, javascript, etc...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 56.5%
  • HTML 33.2%
  • CSS 10.3%