Skip to content

Commit

Permalink
Merge pull request #22 from mrfrase3/patch-1
Browse files Browse the repository at this point in the history
Send data URI as base64
  • Loading branch information
cr7boulos authored Jul 24, 2019
2 parents a271ef9 + 32e3270 commit e83e0cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/convertHTMLToPDF.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ let convertHTMLToPDF = async (html, callback, options = null, puppeteerArgs=null
}

if (remoteContent === true) {
await page.goto(`data:text/html,${html}`, {
await page.goto(`data:text/html;base64,${Buffer.from(html).toString('base64')}`, {
waitUntil: 'networkidle0'
});
} else {
Expand Down

0 comments on commit e83e0cd

Please sign in to comment.