Skip to content

Commit

Permalink
feat(Page.pdf): add 'A6' page format
Browse files Browse the repository at this point in the history
This patch adds 'A6' page format option to the Page.pdf method.
  • Loading branch information
barryvdh authored and aslushnikov committed Oct 11, 2017
1 parent 9ecf20f commit 3f9f0f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/api.md
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions lib/Page.js
Expand Up @@ -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 = {
Expand Down

0 comments on commit 3f9f0f4

Please sign in to comment.