Skip to content

Commit

Permalink
Merge pull request #162 from hackjustu/exposing_zoomFactor
Browse files Browse the repository at this point in the history
Exposing zoomFactor in options
  • Loading branch information
marcbachmann authored Aug 17, 2016
2 parents ff2fa01 + 8de2fef commit dbb323d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ config = {

// Rendering options
"base": "file:///home/www/your-asset-path", // Base path that's used to load files (images, css, js) when they aren't referenced using a host

// Zooming options
"zoomFactor": "1", // default is 1

// File options
"type": "pdf", // allowed file types: png, jpeg, pdf
Expand Down
1 change: 1 addition & 0 deletions lib/scripts/pdf_a4_portrait.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ var page = webpage.create()

if (options.httpHeaders) page.customHeaders = options.httpHeaders
if (options.viewportSize) page.viewportSize = options.viewportSize
if (options.zoomFactor) page.zoomFactor = options.zoomFactor
if (options.base) page.setContent(json.html, options.base)
else page.setContent(json.html, null)

Expand Down

0 comments on commit dbb323d

Please sign in to comment.