Return node::Buffer as a printToPDF callback result.
This commit is contained in:
parent
ab40da3f31
commit
ac62871645
4 changed files with 25 additions and 71 deletions
|
@ -52,7 +52,7 @@ class WebContents : public mate::EventEmitter,
|
|||
public content::WebContentsObserver,
|
||||
public content::GpuDataManagerObserver {
|
||||
public:
|
||||
typedef base::Callback<void(int)> PrintToPDFCallback;
|
||||
typedef base::Callback<void(v8::Local<v8::Value>)> PrintToPDFCallback;
|
||||
|
||||
// Create from an existing WebContents.
|
||||
static mate::Handle<WebContents> CreateFrom(
|
||||
|
|
|
@ -89,7 +89,6 @@ wrapWebContents = (webContents) ->
|
|||
collate:true,
|
||||
shouldPrintBackgrounds:false,
|
||||
shouldPrintSelectionOnly:false
|
||||
silent:false
|
||||
|
||||
if options.landscape
|
||||
printingSetting.landscape = options.landscape
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue