We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6d4544 commit aa16a39Copy full SHA for aa16a39
index.js
@@ -10,7 +10,7 @@ plugins.map(function(plugin){
10
//Modify the save function to save to disk
11
var fs = require('fs');
12
jsPDF.API.save = function(filename, callback){
13
- fs.writeFile(filename, doc.output, callback);
+ fs.writeFile(filename, this.output(), callback);
14
}
15
16
module.exports = jsPDF;
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "node-jspdf",
3
- "version": "0.0.1",
+ "version": "0.0.2",
4
"description": "Use jsPDF in your node apps.",
5
"main": "index.js",
6
"scripts": {
0 commit comments