| 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..4421b3925717f2f33bd8fca1a42f7f64c467aaac 100644
|
| --- a/third_party/WebKit/Source/core/inspector/browser_protocol.json
|
| +++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json
|
| @@ -430,6 +430,21 @@
|
| {
|
| "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": "unit", "type": "string", "optional": true, "enum": ["INCH", "MM"], "description": "Unit for paper and margin size. Defaults to INCH."},
|
| + {"name": "paperType", "type": "string", "optional": true, "enum": ["NA_LETTER", "NA_LEGAL", "ISO_A4", "ISO_A3", "CUSTOM"], "description": "Paper type. Defaults to 'NA_LETTER'."},
|
| + {"name": "paperWidth", "type": "number", "optional": true, "description": "Paper width. Must be set when paperType is 'CUSTOM'."},
|
| + {"name": "paperHeight", "type": "number", "optional": true, "description": "Paper height. Must be set when paperType is 'CUSTOM'."},
|
| + {"name": "marginTop", "type": "number", "optional": true, "description": "Top margin. Defaults to 10mm = ~2/5 of an inch."},
|
| + {"name": "marginBottom", "type": "number", "optional": true, "description": "Bottom margin. Defaults to 10mm = ~2/5 of an inch."},
|
| + {"name": "marginLeft", "type": "number", "optional": true, "description": "Left margin. Defaults to 10mm = ~2/5 of an inch."},
|
| + {"name": "marginRight", "type": "number", "optional": true, "description": "Right margin. Defaults to 10mm = ~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." }
|
| ],
|
|
|