Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pdf-puppeteer",
"version": "1.1.10",
"version": "1.1.11",
"description": "A simple NPM package to convert html to pdf for Node applications by using Puppeteer",
"main": "index.js",
"types": "index.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion src/convertHTMLToPDF.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ let convertHTMLToPDF = async (html, callback, options = null, puppeteerArgs=null

if (remoteContent === true) {
await page.goto(`data:text/html;base64,${Buffer.from(html).toString('base64')}`, {
waitUntil: 'networkidle0'
waitUntil: 'networkidle0',
'timeout': 0
});
} else {
//page.setContent will be faster than page.goto if html is a static
Expand Down