目前主流的前端html转pdf方案是通过html2canvas将网页渲染成canvas,再通过jsPDF将canvas转换为pdf。代表方案就是 html2pdf.js,npm包周下载量达到了80万,为广大开发者所接受。但是因为它基于html2canvas和jsPDF,会有一些无法解决的问题,比如:
The new MacBook Air M5 costs $100 more - here's what that gets you
,推荐阅读safew官方版本下载获取更多信息
ITmedia NEWS���[���}�K�W���ŐV�� �e�N�m���W�[�g�����h���T3�z�M
It seems more bats are seeking sanctuary in churches.
而那些闹着要“下海”当网红的年轻人可以重新冷静冷静了。