Index: third_party/WebKit/Source/core/inspector/browser_protocol.json |
diff --git a/third_party/WebKit/Source/core/inspector/browser_protocol.json b/third_party/WebKit/Source/core/inspector/browser_protocol.json |
index ccc2d2b3bd2516d1cf26cac51ef0bef53e2daa0f..ae8ca34b4131f71176351831eb63c7aa65db5098 100644 |
--- a/third_party/WebKit/Source/core/inspector/browser_protocol.json |
+++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json |
@@ -429,7 +429,20 @@ |
}, |
{ |
"name": "printToPDF", |
- "description": "Print page as pdf.", |
+ "description": "Print page as PDF.", |
+ "parameters": [ |
+ {"name": "landscape", "type": "boolean", "optional": true, "description": "Paper orientation. Defaults to false."}, |
+ {"name": "displayHeaderFooter", "type": "boolean", "optional": true, "description": "Display header and footer. Defaults to false."}, |
+ {"name": "printBackground", "type": "boolean", "optional": true, "description": "Print background graphics. Defaults to false."}, |
+ {"name": "scale", "type": "number", "optional": true, "description": "Scale of the webpage rendering. Defaults to 1."}, |
+ {"name": "paperWidth", "type": "number", "optional": true, "description": "Paper width in inches. Defaults to 8.5 inches."}, |
+ {"name": "paperHeight", "type": "number", "optional": true, "description": "Paper height in inches. Defaults to 11 inches."}, |
+ {"name": "marginTop", "type": "number", "optional": true, "description": "Top margin in inches. Defaults to 1cm (~0.4 inches)."}, |
+ {"name": "marginBottom", "type": "number", "optional": true, "description": "Bottom margin in inches. Defaults to 1cm (~0.4 inches)."}, |
+ {"name": "marginLeft", "type": "number", "optional": true, "description": "Left margin in inches. Defaults to 1cm (~0.4 inches)."}, |
+ {"name": "marginRight", "type": "number", "optional": true, "description": "Right margin in inches. Defaults to 1cm (~0.4 inches)."}, |
+ {"name": "pageRanges", "type": "string", "optional": true, "description": "Paper ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string, which means print all pages."} |
+ ], |
"returns": [ |
{ "name": "data", "type": "string", "description": "Base64-encoded pdf data." } |
], |