Hi, I noticed that await page.render(renderContext, annotations); gets called even if annotations.length is 0. Is there a reason for this?
I think making it so that only pages with annotations are rendered would greatly improve the time it takes to extract the highlights.
I think it depends on the PDF, but I timed that it takes about 100-200ms per page to render, making a 500 page pdf take 1-2 minutes regardless of the amount of annotations.
Hi, I noticed that
await page.render(renderContext, annotations);
gets called even ifannotations.length
is 0. Is there a reason for this?I think making it so that only pages with annotations are rendered would greatly improve the time it takes to extract the highlights.
I think it depends on the PDF, but I timed that it takes about 100-200ms per page to render, making a 500 page pdf take 1-2 minutes regardless of the amount of annotations.