diff --git a/assets/pdfdir/Wcg5yDTbm.pdf b/assets/pdfdir/2cJShSO_B.pdf similarity index 99% rename from assets/pdfdir/Wcg5yDTbm.pdf rename to assets/pdfdir/2cJShSO_B.pdf index 5d93e7c..81167cb 100644 Binary files a/assets/pdfdir/Wcg5yDTbm.pdf and b/assets/pdfdir/2cJShSO_B.pdf differ diff --git a/assets/pdfdir/r2nfLxJWf.pdf b/assets/pdfdir/7oErt5s2F.pdf similarity index 99% rename from assets/pdfdir/r2nfLxJWf.pdf rename to assets/pdfdir/7oErt5s2F.pdf index 00a6fe7..aa430dc 100644 Binary files a/assets/pdfdir/r2nfLxJWf.pdf and b/assets/pdfdir/7oErt5s2F.pdf differ diff --git a/assets/pdfdir/2HVHBoSVG.pdf b/assets/pdfdir/S1U67__pD.pdf similarity index 99% rename from assets/pdfdir/2HVHBoSVG.pdf rename to assets/pdfdir/S1U67__pD.pdf index 29d9a19..40a94e1 100644 Binary files a/assets/pdfdir/2HVHBoSVG.pdf and b/assets/pdfdir/S1U67__pD.pdf differ diff --git a/ts/smartpdf.classes.smartpdf.ts b/ts/smartpdf.classes.smartpdf.ts index dcc590a..37a701c 100644 --- a/ts/smartpdf.classes.smartpdf.ts +++ b/ts/smartpdf.classes.smartpdf.ts @@ -76,6 +76,7 @@ export class SmartPdf { async getPdfForWebsite(websiteUrl: string) { const page = await this.headlessBrowser.newPage(); + page.emulateMedia('screen'); const response = await page.goto(websiteUrl, { waitUntil: 'networkidle2' }); const pdfId = plugins.smartunique.shortId(); await page.pdf({ @@ -90,6 +91,7 @@ export class SmartPdf { async getFullWebsiteAsSinglePdf(websiteUrl: string) { const page = await this.headlessBrowser.newPage(); + page.emulateMedia('screen'); const response = await page.goto(websiteUrl, { waitUntil: 'networkidle2' }); const pdfId = plugins.smartunique.shortId(); const {documentHeight, documentWidth} = await page.evaluate(() => {