fix: webContents.printToPDF
option plumbing (#35975)
fix: contents.printToPDF option plumbing
This commit is contained in:
parent
0759f3320e
commit
ee7cf5a6d4
2 changed files with 13 additions and 13 deletions
|
@ -2857,12 +2857,12 @@ v8::Local<v8::Promise> WebContents::PrintToPDF(const base::Value& settings) {
|
|||
settings.GetDict().FindBool("displayHeaderFooter");
|
||||
auto print_background = settings.GetDict().FindBool("shouldPrintBackgrounds");
|
||||
auto scale = settings.GetDict().FindDouble("scale");
|
||||
auto paper_width = settings.GetDict().FindInt("paperWidth");
|
||||
auto paper_height = settings.GetDict().FindInt("paperHeight");
|
||||
auto margin_top = settings.GetDict().FindIntByDottedPath("margins.top");
|
||||
auto margin_bottom = settings.GetDict().FindIntByDottedPath("margins.bottom");
|
||||
auto margin_left = settings.GetDict().FindIntByDottedPath("margins.left");
|
||||
auto margin_right = settings.GetDict().FindIntByDottedPath("margins.right");
|
||||
auto paper_width = settings.GetDict().FindDouble("paperWidth");
|
||||
auto paper_height = settings.GetDict().FindDouble("paperHeight");
|
||||
auto margin_top = settings.GetDict().FindDouble("marginTop");
|
||||
auto margin_bottom = settings.GetDict().FindDouble("marginBottom");
|
||||
auto margin_left = settings.GetDict().FindDouble("marginLeft");
|
||||
auto margin_right = settings.GetDict().FindDouble("marginRight");
|
||||
auto page_ranges = *settings.GetDict().FindString("pageRanges");
|
||||
auto header_template = *settings.GetDict().FindString("headerTemplate");
|
||||
auto footer_template = *settings.GetDict().FindString("footerTemplate");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue