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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?