在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:apilayer/html2pdf.it开源软件地址:https://github.com/apilayer/html2pdf.it开源编程语言:JavaScript 73.3%开源软件介绍:html2pdf.itGenerate PDFs from any web-page. You need Node.js to run it. See it in action at: html2pdf.it. Works out of the box on both Windows and Ubuntu. On Mac you need to: brew install phantomjs To get started you need to clone the repository, cd to it and run:npm install Running webserver locallynode open.js This also opens your web-browser pointing to your locally running html2pdf.it: Running webserver
If you want to host html2pdf.it yourself, you will have to ask your host if they support hosting Node.js applications. If your host does not support Node.js, you'll need to find a new host that does. Check out Heroku or Nodejitsu for example. Running testsnpm test Page breaksYou can use the CSS attribute: page-break-before: always; Data URIsYou can use data URIs like the following to generate PDFs for arbitrary HTML: data:text/html;encoding=utf-8,<h1>Hello</h1> As described on Wikipedia, the data URI should have the following format:
LicenseMIT |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论