Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance issues on Firefox with large documents #32

Open
3j14 opened this issue Sep 10, 2020 · 1 comment
Open

Performance issues on Firefox with large documents #32

3j14 opened this issue Sep 10, 2020 · 1 comment

Comments

@3j14
Copy link
Member

3j14 commented Sep 10, 2020

For large documents with many embedded SVGs, the performance suffers by a lot (especially on Firefox). The easiest solution for this would be to change the rendering engine from SVG to HTML5 Canvas. However, this comes with a mayor drawback: the documents are no longer scaleable.
HTML5 canvas rendering was used for quite some time at the beginning and has been ditched in favour of SVG.

Another possibility would be to render SVGs inside the document as raster images.

@3j14 3j14 added this to the Release 0.1.0 milestone Sep 10, 2020
@3j14 3j14 self-assigned this Sep 10, 2020
@3j14
Copy link
Member Author

3j14 commented Nov 11, 2020

I now remembered why I didn't use rasterized HTML5 canvases instead of SVGs. The reason for this was the fact that they would not scale well when resizing the window/preview.

The alternative is to rasterize images inside the PDF for "quick previews" with a lower quality (i.e. a draft), while the download button (or bulk download) will yield a print-ready PDF.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant