From a94ebd5492fa7aca381a5735c2bf09514c618f80 Mon Sep 17 00:00:00 2001 From: Marc Bachmann Date: Sun, 25 Jan 2015 21:49:19 +0100 Subject: [PATCH] Version 1.0.0 --- Changelog.md | 21 +++++++++++++++++++++ package.json | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/Changelog.md b/Changelog.md index 74ba606..10b85cb 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,3 +1,24 @@ +1.0.0 +===== +- Catch phantomjs errors [517d307](https://github.com/marcbachmann/node-html-pdf/commit/517d30762e3121f72aa3879e07f5944c05c4d96d) + +- new module API [#11](https://github.com/marcbachmann/node-html-pdf/pull/11) + ```js + pdf = require('html-pdf') + pdf.create(html).toFile(filepath, function(err, res){ + console.log(res.filename); + }); + + pdf.create(html).toStream(filepath, function(err, stream){ + steam.pipe(fs.createWriteStream('./foo.pdf')); + }); + + pdf.create(html).toBuffer(filepath, function(err, buffer){ + console.log('This is a buffer:', Buffer.isBuffer(buffer)); + }); + ``` + + 0.3.0 ===== - Windows support #6 diff --git a/package.json b/package.json index c18f888..4c5e8a3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "html-pdf", - "version": "0.4.0", + "version": "1.0.0", "description": "HTML to PDF converter that uses phantomjs", "main": "lib/index.js", "directories": {