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..fabb457571bf9e5659ba768616e0de49699ace67 100644 |
--- a/third_party/WebKit/Source/core/inspector/browser_protocol.json |
+++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json |
@@ -430,6 +430,19 @@ |
{ |
"name": "printToPDF", |
"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": "printBackgrounds", "type": "boolean", "optional": true, "description": "Print background colors. Defaults to false."}, |
+ {"name": "scale", "type": "number", "optional": true, "description": "Scale of the pdf. Defaults to 1."}, |
+ {"name": "paperWidth", "type": "number", "optional": true, "description": "Paper width in inch. Defaults to 8.5 inch."}, |
+ {"name": "paperHeight", "type": "number", "optional": true, "description": "Paper height. Defaults to 11 inch."}, |
+ {"name": "marginTop", "type": "number", "optional": true, "description": "Top margin in inch. Defaults to 1cm = ~2/5 of an inch."}, |
+ {"name": "marginBottom", "type": "number", "optional": true, "description": "Bottom margin in inch. Defaults to 1cm = ~2/5 of an inch."}, |
+ {"name": "marginLeft", "type": "number", "optional": true, "description": "Left margin in inch. Defaults to 1cm = ~2/5 of an inch."}, |
+ {"name": "marginRight", "type": "number", "optional": true, "description": "Right margin in inch. Defaults to 1cm = ~2/5 of an inch."}, |
+ {"name": "pageRanges", "type": "string", "optional": true, "description": "Paper ranges to print, e.g., '1-5, 8, 11-13'. Defaults to print all pages."} |
+ ], |
"returns": [ |
{ "name": "data", "type": "string", "description": "Base64-encoded pdf data." } |
], |