Skip to content

Commit cb3cb10

Browse files
author
Cosmo
authored
Expose the zoomFactor
The zoomFactor is an important factor when rendering the webpage. Please expose it:)
1 parent ff2fa01 commit cb3cb10

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/scripts/pdf_a4_portrait.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ var page = webpage.create()
3535

3636
if (options.httpHeaders) page.customHeaders = options.httpHeaders
3737
if (options.viewportSize) page.viewportSize = options.viewportSize
38+
if (options.zoomFactor) page.zoomFactor = options.zoomFactor
3839
if (options.base) page.setContent(json.html, options.base)
3940
else page.setContent(json.html, null)
4041

0 commit comments

Comments
 (0)