Is there a way to generate a PDF file in JavaScript out of a given rendered and styled element of a webpage and its content? Is there already a library for this?
我从未使用过它,但是https://github.com/thebluber/htmlToPdf可以满足您的需求吗?
There is a library called jsPDF . It provides basic functionality to create PDF documents. It even comes with a plugin to add elements from basic HTML.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.