feat(Page.pdf): add 'A6' page format

This patch adds 'A6' page format option to the Page.pdf method.
This commit is contained in:
Barry vd. Heuvel 2017-10-11 22:18:14 +02:00 committed by Andrey Lushnikov
parent 9ecf20fc03
commit 3f9f0f44ff
2 changed files with 2 additions and 0 deletions

View File

@ -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:

View File

@ -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 = {