Skip to content

Commit c96f859

Browse files
committed
remove html thing
1 parent edb4f30 commit c96f859

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

xp-archive/server/src/services/PdfService.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,7 @@ export class PdfService {
133133

134134
await page.setViewport({ width: widthActual, height: 1024 });
135135
await page.emulateMediaType('screen');
136-
const htmlforpdf = await fs.readFile(html, 'utf-8');
137-
await page.setContent(htmlforpdf, { waitUntil: 'domcontentloaded' });
138-
console.info(`HTML-content: ${htmlforpdf}`);
136+
await page.setContent(html, { waitUntil: 'domcontentloaded' });
139137

140138
const pdf = await page.pdf({
141139
printBackground: true,

0 commit comments

Comments
 (0)