Add options to custom print settings in printToPDF API.
This commit is contained in:
parent
9cf9229308
commit
ce8bbb689c
6 changed files with 40 additions and 11 deletions
|
@ -265,9 +265,9 @@ void NativeWindow::Print(bool silent, bool print_background) {
|
|||
PrintNow(silent, print_background);
|
||||
}
|
||||
|
||||
void NativeWindow::PrintToPDF() {
|
||||
void NativeWindow::PrintToPDF(const mate::Dictionary& options) {
|
||||
printing::PrintPreviewMessageHandler::FromWebContents(GetWebContents())->
|
||||
HandleGetPreview(NULL);
|
||||
HandleGetPreview(options);
|
||||
}
|
||||
|
||||
void NativeWindow::ShowDefinitionForSelection() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue