commit
7165aa5467
1 changed files with 1 additions and 1 deletions
|
@ -419,7 +419,7 @@ win.webContents.on("did-finish-load", function() {
|
||||||
win.webContents.printToPDF({}, function(error, data) {
|
win.webContents.printToPDF({}, function(error, data) {
|
||||||
if (error) throw error;
|
if (error) throw error;
|
||||||
fs.writeFile("/tmp/print.pdf", data, function(error) {
|
fs.writeFile("/tmp/print.pdf", data, function(error) {
|
||||||
if (err)
|
if (error)
|
||||||
throw error;
|
throw error;
|
||||||
console.log("Write PDF successfully.");
|
console.log("Write PDF successfully.");
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue