Copy link to clipboard
Copied
Copy link to clipboard
Copied
Please share your code.
Copy link to clipboard
Copied
It's a single call to AddAnnotationsInPdf with an array with more than 100 annotations like this one:
Copy link to clipboard
Copied
Are you listening for any annotation events?
Copy link to clipboard
Copied
all of them
Copy link to clipboard
Copied
Ok - That's what's accounting for the slowdown. For each of the 100 annotations being added, as each one is being added, the callbacks are firing.
Copy link to clipboard
Copied
So what do I do, start listening only after I add the annotations?
Copy link to clipboard
Copied
That'd be my recommendation.
Copy link to clipboard
Copied
When I put after the addAnnotationsInPDF() call, it listens to all the annotation_added events..
Copy link to clipboard
Copied
Even if I listen after I call addAnnotationsInPDF(), it listens to all the annotation_added events
Copy link to clipboard
Copied
Please share your code
Copy link to clipboard
Copied
I fixed the problem with the listening... but the problem of adding more than 100 annotations being slow, still there. When I add a few annotations, it adds really fast, but when it a pdf with more than 100 pages and more than 100 annotations distributed in those pages, gets really slow
Copy link to clipboard
Copied