File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed
Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 1+ 1.0.0
2+ =====
3+ - Catch phantomjs errors [ 517d307] ( https://github.com/marcbachmann/node-html-pdf/commit/517d30762e3121f72aa3879e07f5944c05c4d96d )
4+
5+ - new module API [ #11 ] ( https://github.com/marcbachmann/node-html-pdf/pull/11 )
6+ ``` js
7+ pdf = require (' html-pdf' )
8+ pdf .create (html).toFile (filepath, function (err , res ){
9+ console .log (res .filename );
10+ });
11+
12+ pdf .create (html).toStream (filepath, function (err , stream ){
13+ steam .pipe (fs .createWriteStream (' ./foo.pdf' ));
14+ });
15+
16+ pdf .create (html).toBuffer (filepath, function (err , buffer ){
17+ console .log (' This is a buffer:' , Buffer .isBuffer (buffer));
18+ });
19+ ```
20+
21+
1220.3.0
223=====
324- Windows support #6
Original file line number Diff line number Diff line change 11{
22 "name" : " html-pdf" ,
3- "version" : " 0.4 .0" ,
3+ "version" : " 1.0 .0" ,
44 "description" : " HTML to PDF converter that uses phantomjs" ,
55 "main" : " lib/index.js" ,
66 "directories" : {
You can’t perform that action at this time.
0 commit comments