Index: headless/app/headless_shell.cc |
diff --git a/headless/app/headless_shell.cc b/headless/app/headless_shell.cc |
index 975b2147641022b89eb26dded9e86f8bd1db49b8..5e62e8a8381fd4aca584b259e098c95fa1806b3f 100644 |
--- a/headless/app/headless_shell.cc |
+++ b/headless/app/headless_shell.cc |
@@ -361,7 +361,10 @@ void HeadlessShell::OnScreenshotCaptured( |
void HeadlessShell::PrintToPDF() { |
devtools_client_->GetPage()->GetExperimental()->PrintToPDF( |
- page::PrintToPDFParams::Builder().Build(), |
+ page::PrintToPDFParams::Builder() |
+ .SetDisplayHeaderFooter(true) |
+ .SetPrintBackground(true) |
+ .Build(), |
base::Bind(&HeadlessShell::OnPDFCreated, weak_factory_.GetWeakPtr())); |
} |