Skip to content

Commit c796912

Browse files
committed
Tweak
1 parent 9af71ca commit c796912

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

pdf-service.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,7 @@ async function generatePdf(url, media, options = {}) {
175175

176176
log('generatePdf: generate PDF', pdfFilePath, options);
177177

178-
await page.pdf({
179-
path: pdfFilePath,
180-
scale: parseFloat(1),
181-
format: 'A4',
182-
printBackground: true,
183-
...options
184-
});
178+
await page.pdf(options);
185179

186180
page.close();
187181

0 commit comments

Comments
 (0)