Compare commits

..

2 Commits

Author SHA1 Message Date
e0cc6b5655 2.0.12 2022-01-05 14:17:43 +01:00
e74b44b49c fix(core): update 2022-01-05 14:17:43 +01:00
3 changed files with 7 additions and 3 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@pushrocks/smartpdf",
"version": "2.0.11",
"version": "2.0.12",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@pushrocks/smartpdf",
"version": "2.0.11",
"version": "2.0.12",
"license": "MIT",
"dependencies": {
"@pushrocks/smartfile": "^8.0.10",

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartpdf",
"version": "2.0.11",
"version": "2.0.12",
"private": false,
"description": "create pdfs on the fly",
"main": "dist_ts/index.js",

View File

@ -68,6 +68,10 @@ export class SmartPdf {
const pdfCandidate = new PdfCandidate(htmlStringArg);
this._candidates[pdfCandidate.pdfId] = pdfCandidate;
const page = await this.headlessBrowser.newPage();
await page.setViewport({
height: 842,
width: 595,
})
const response = await page.goto(`http://localhost:3210/${pdfCandidate.pdfId}`, {
waitUntil: 'networkidle2',
});