PDF.js Express Version
“description”: “PDFJS Express”,
“version”: “7.2.2”,
Detailed description of issue
We use WebViewer to save annotations to a document, and we found that in some cases where PDF files with more than 30 pages costs 2-3 minutes to add and save only one small annotation. Is it expected situation or is there any faster practice?
Expected behaviour
Other files are normally saved in a several seconds.
Does your issue happen with every document, or just one?
It randomly occurs especially in the cases of larger sized PDF files.
Hi Logan! thanks for the quick reply!
Let me correct the issue is not saving but exporting.
The below exporting process costs around 2 min when adding some simple annotation to the document and export it.
And we found out the latency occurs only on the first timing of annotManager.exportAnnotations.
Once executed the above, there’s no latency of doing the same export. It looks like the module runs some heavy process on the first time, doesn’t it?
Whats happening is that we have some code that scans through the text and tries to add links to any text that resembles a URL - unfortunately this code is a bit slow on large documents like the one you sent me. Disabling this functionality with the API above fixes the issue.