From 3f9f0f44ff8866588e2ab20e61dd301cd6af3a23 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Wed, 11 Oct 2017 22:18:14 +0200 Subject: [PATCH] feat(Page.pdf): add 'A6' page format This patch adds 'A6' page format option to the Page.pdf method. --- docs/api.md | 1 + lib/Page.js | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/api.md b/docs/api.md index 0f7812278c990..b321df4345a58 100644 --- a/docs/api.md +++ b/docs/api.md @@ -809,6 +809,7 @@ The `format` options are: - `A3`: 11.7in x 16.5in - `A4`: 8.27in x 11.7in - `A5`: 5.83in x 8.27in +- `A6`: 4.13in x 5.83in #### page.reload(options) - `options` <[Object]> Navigation parameters which might have the following properties: diff --git a/lib/Page.js b/lib/Page.js index b3d971874a8d4..7cccaa4b037f6 100644 --- a/lib/Page.js +++ b/lib/Page.js @@ -850,6 +850,7 @@ Page.PaperFormats = { a3: {width: 11.7, height: 16.5 }, a4: {width: 8.27, height: 11.7 }, a5: {width: 5.83, height: 8.27 }, + a6: {width: 4.13, height: 5.83 }, }; const unitToPixels = {