fix: return type of webview.printToPDF is now Uint8Array (#20505)
This commit is contained in:
parent
01448e1235
commit
5d696c5c69
3 changed files with 32 additions and 17 deletions
|
@ -565,7 +565,7 @@ Prints `webview`'s web page. Same as `webContents.print([options])`.
|
|||
* `printSelectionOnly` Boolean (optional) - Whether to print selection only.
|
||||
* `landscape` Boolean (optional) - `true` for landscape, `false` for portrait.
|
||||
|
||||
Returns `Promise<Buffer>` - Resolves with the generated PDF data.
|
||||
Returns `Promise<Uint8Array>` - Resolves with the generated PDF data.
|
||||
|
||||
Prints `webview`'s web page as PDF, Same as `webContents.printToPDF(options)`.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue