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
[ ] Create a retro with a lot of content
[ ] In the meeting summary, click "Download to PDF"
[ ] See that it downloads every page, not just the first
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