]> khamidou — GitHub mirrors - electron.git/commitdiff
Also Expose printToPDF to BrowserWindow.
authorHaojian Wu <hokein.wu@gmail.com>
Sat, 13 Jun 2015 13:39:06 +0000 (21:39 +0800)
committerHaojian Wu <hokein.wu@gmail.com>
Tue, 16 Jun 2015 12:08:30 +0000 (20:08 +0800)
atom/browser/api/lib/browser-window.coffee
docs/api/browser-window.md

index b0ffe6b37ef9f09b3165b825cd8b8a2ccfaad893..818d737a894f8fa3cd664564a449eb743ddb904e 100644 (file)
@@ -84,5 +84,6 @@ BrowserWindow::toggleDevTools = -> @webContents.toggleDevTools()
 BrowserWindow::inspectElement = -> @webContents.inspectElement.apply @webContents, arguments
 BrowserWindow::inspectServiceWorker = -> @webContents.inspectServiceWorker()
 BrowserWindow::print = -> @webContents.print.apply @webContents, arguments
+BrowserWindow::printToPDF = -> @webContents.printToPDF.apply @webContents, arguments
 
 module.exports = BrowserWindow
index a25c4d88527dcc7299a6967a749f0dacb0cc1ff8..05cddc7978a79f539404547ec8e8fd13c61aa44f 100644 (file)
@@ -558,6 +558,10 @@ process.
 
 Same with `webContents.print([options])`
 
+### BrowserWindow.printToPDF(options, callback)
+
+Same with `webContents.printToPDF(options, callback)`
+
 ### BrowserWindow.loadUrl(url, [options])
 
 Same with `webContents.loadUrl(url, [options])`.