Skip to content

Commit

Permalink
Merge pull request #11 from SjoenH/master
Browse files Browse the repository at this point in the history
set default scale 1.0
  • Loading branch information
zenato authored Apr 16, 2019
2 parents 1f8bfa1 + 4aa3921 commit 723be1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Renderer {
const { timeout, waitUntil, ...extraOptions } = options
page = await this.createPage(url, { timeout, waitUntil })

const { scale, displayHeaderFooter, printBackground, landscape } = extraOptions
const { scale = 1.0, displayHeaderFooter, printBackground, landscape } = extraOptions
const buffer = await page.pdf({
...extraOptions,
scale: Number(scale),
Expand Down

0 comments on commit 723be1c

Please sign in to comment.