AmruthPillai / Reactive-Resume

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
https://rxresu.me
MIT License
22.89k stars 2.41k forks source link

[Cant download cv pdf format] <Download PDF format> #1914

Open Roua580 opened 4 months ago

Roua580 commented 4 months ago

Is there an existing issue for this?

Product Variant

Self-Hosted

Current Behavior

Cant download cv pdf format when you click on the tab

Expected Behavior

the download is supposed to launch

Steps To Reproduce

No response

What browsers are you seeing the problem on?

Firefox

What template are you using?

None

Anything else?

No response

vashik commented 3 months ago

I am also observing the issue, the output is:

Trace: Error [TypeError]: Cannot read properties of null (reading 'cloneNode')
    at evaluate (evaluate at processPage (/src/github.com/AmruthPillai/Reactive-Resume/dist/apps/server/main.js:13123:50), <anonymous>:1:50)
    at ExecutionContext.#evaluate (/src/github.com/AmruthPillai/Reactive-Resume/node_modules/.pnpm/puppeteer-core@22.9.0/node_modules/puppeteer-core/src/cdp/ExecutionContext.ts:431:34)
    at ExecutionContext.evaluate (/src/github.com/AmruthPillai/Reactive-Resume/node_modules/.pnpm/puppeteer-core@22.9.0/node_modules/puppeteer-core/src/cdp/ExecutionContext.ts:284:12)
    at IsolatedWorld.evaluate (/src/github.com/AmruthPillai/Reactive-Resume/node_modules/.pnpm/puppeteer-core@22.9.0/node_modules/puppeteer-core/src/cdp/IsolatedWorld.ts:192:12)
    at CdpFrame.evaluate (/src/github.com/AmruthPillai/Reactive-Resume/node_modules/.pnpm/puppeteer-core@22.9.0/node_modules/puppeteer-core/src/api/Frame.ts:470:12)
    at CdpPage.evaluate (/src/github.com/AmruthPillai/Reactive-Resume/node_modules/.pnpm/puppeteer-core@22.9.0/node_modules/puppeteer-core/src/api/Page.ts:2185:12)
    at processPage (/src/github.com/AmruthPillai/Reactive-Resume/dist/apps/server/main.js:13123:39)
    at PrinterService.generateResume (/src/github.com/AmruthPillai/Reactive-Resume/dist/apps/server/main.js:13136:17)
    at PrinterService.printResume (/src/github.com/AmruthPillai/Reactive-Resume/dist/apps/server/main.js:13062:21)
    at ResumeService.printResume (/src/github.com/AmruthPillai/Reactive-Resume/dist/apps/server/main.js:13859:21)
    at PrinterService.generateResume (/src/github.com/AmruthPillai/Reactive-Resume/dist/apps/server/main.js:13167:21)
    at PrinterService.printResume (/src/github.com/AmruthPillai/Reactive-Resume/dist/apps/server/main.js:13062:21)
    at ResumeService.printResume (/src/github.com/AmruthPillai/Reactive-Resume/dist/apps/server/main.js:13859:21)
    at ResumeController.printResume (/src/github.com/AmruthPillai/Reactive-Resume/dist/apps/server/main.js:13506:25)
Guo-Chenxu commented 3 months ago

i meet this problem too, so i have to use latex to write my resume again /(ㄒoㄒ)/~~

HUAHUAI23 commented 3 months ago

When generating PDFs, headless Chrome needs to download and import fonts from the internet. If the network environment is poor and loading times out, it can cause the PDF export to fail. I think it might be better to store the font files as static files in MinIO or on a server.

jeremyyin2012 commented 3 months ago

I found a solution:

  1. Open Sharing: toggle Public On, copy URL, open in new tab
  2. Print to PDF: click Three-dot menu on top right, click Print, choose Save as PDF, Save. (Ctrl/Command + P)
  3. Close Sharing: toggle Public Off !!!

PS: If we had a guide to a private preview page, it would be easy to indirectly solve this problem of exporting PDF and significantly reduce resource consumption.