ParabolInc / parabol

Free online agile retrospective meeting tool
https://www.parabol.co/
Other
1.91k stars 326 forks source link

fix: download pdf shows multiple pages #9889

Closed nickoferrall closed 3 months ago

nickoferrall commented 3 months ago

Fix https://github.com/ParabolInc/parabol/issues/9862

In production, download to pdf just downloads the first page, rather than all pages. This is because window.print() just shows the visible part of the web page in a SPA.

In this PR, I'm opening a new window and rending the HTML as a static snapshot so that all of the content is visible.

The pdf shows "about:blank" at the bottom left of the page. I don't think this can be removed as the browser checks the URL. And there's some box shadow at the end of the summary in the PDF, but I think that's fine.

To test