html2pdf.it

Webservice for generating pdfs from html

  • 所有者: apilayer/html2pdf.it
  • 平台:
  • 许可证:
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

logo html2pdf.it

Generate 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 locally

node open.js

This also opens your web-browser pointing to your locally running html2pdf.it:

Running webserver

node .

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 tests

npm test

Page breaks

You can use the CSS attribute:

page-break-before: always;

Data URIs

You 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:

data:[<media type>][;base64],<data>

License

MIT

主要指标

概览
名称与所有者apilayer/html2pdf.it
主编程语言JavaScript
编程语言JavaScript (语言数: 2)
平台
许可证
所有者活动
创建于2012-06-09 09:21:04
推送于2020-10-08 10:40:05
最后一次提交2019-05-12 08:22:58
发布数9
最新版本名称v2.0.0 (发布于 2017-02-07 17:59:22)
第一版名称1.2.1 (发布于 )
用户参与
星数546
关注者数31
派生数155
提交数194
已启用问题?
问题数62
打开的问题数21
拉请求数9
打开的拉请求数1
关闭的拉请求数6
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?