Skip to content

Commit a94ebd5

Browse files
committed
Version 1.0.0
1 parent f24bc83 commit a94ebd5

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

Changelog.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
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+
122
0.3.0
223
=====
324
- Windows support #6

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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": {

0 commit comments

Comments
 (0)