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
A single page pdf is taking 4 min to render #17779
Comments
Is the underlying issue here perhaps (partially) related to the fact that SMask handling is inefficient, given the use of |
Yep, it's on my long todo list. |
and implement then in using some SVG filters and composition. Composing in using destination-in in order to multiply RGB components by the alpha from the mask isn't perfect: it'd be a way better to natively have alpha masks support, it induces some small rounding errors and consequently computed RGB are approximatively correct. In term of performance, it's a real improvement, for example, the pdf in issue mozilla#17779 is now rendered in few seconds. There are still some room for improvement, but overall it should be a way better.
and implement then in using some SVG filters and composition. Composing in using destination-in in order to multiply RGB components by the alpha from the mask isn't perfect: it'd be a way better to natively have alpha masks support, it induces some small rounding errors and consequently computed RGB are approximatively correct. In term of performance, it's a real improvement, for example, the pdf in issue mozilla#17779 is now rendered in few seconds. There are still some room for improvement, but overall it should be a way better.
…(bug 1874013) and implement then in using some SVG filters and composition. Composing in using destination-in in order to multiply RGB components by the alpha from the mask isn't perfect: it'd be a way better to natively have alpha masks support, it induces some small rounding errors and consequently computed RGB are approximatively correct. In term of performance, it's a real improvement, for example, the pdf in issue mozilla#17779 is now rendered in few seconds. There are still some room for improvement, but overall it should be a way better.
Should we close this now that #18029 was merged? |
Attach (recommended) or Link to PDF file here:
p95.pdf
Configuration:
Steps to reproduce the problem:
It seems that the pdf contains a lot of paths outside the clip box and for each of them we call with a
null
argument:pdf.js/src/display/canvas.js
Line 1788 in 6bb6ce6
which itself calls at some point:
pdf.js/src/display/canvas.js
Line 838 in 6bb6ce6
That said, the overall rendering is incorrect: the lines for the borders and some grayed countries are not rendered at all.
The text was updated successfully, but these errors were encountered: