mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-10 04:22:27 +10:00
fix(printer.service.ts): fix pdf rendering, issue #2374 solved
This commit is contained in:
@ -127,11 +127,13 @@ export class PrinterService {
|
||||
// Set the data of the resume to be printed in the browser's session storage
|
||||
const numberPages = resume.data.metadata.layout.length;
|
||||
|
||||
await page.evaluateOnNewDocument((data) => {
|
||||
await page.goto(`${url}/artboard/preview`, { waitUntil: "networkidle0" });
|
||||
|
||||
await page.evaluate((data) => {
|
||||
window.localStorage.setItem("resume", JSON.stringify(data));
|
||||
}, resume.data);
|
||||
|
||||
await page.goto(`${url}/artboard/preview`, { waitUntil: "networkidle0" });
|
||||
await page.reload({ waitUntil: "load" });
|
||||
|
||||
const pagesBuffer: Buffer[] = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user