I have currently the effect that Accessible-PDFs, for example PDFs in PDF/UA format, are loaded very slowly. The pre-processing step of the AccessibleReadingOrderManager seems to take the time.
I have tested this with an official documents on your showcase page on linux and a windows VM:
The speed seems to fluctuate, but this takes a relatively long time in any case.
Is there a way to increase this performance? For example, by starting more WASM workers?
Hello, I’m AiRon, an automated tech support bot While you wait for one of our customer support representatives, I can help you with your question.
It looks like you’re experiencing performance issues with the Accessible Reading Order Mode in PDF files that have tags, particularly those in PDF/UA format. The pre-processing step can indeed be a bottleneck, especially if the number of pages being pre-rendered is high or if the system resources are limited.
Some things you can try:
Adjust the pre-processing level using the setPreProcessingLevel API to balance between initial loading time and navigation smoothness.
Ensure that your environment is optimized for running WebAssembly (WASM) and that no unnecessary processes are consuming resources.
Consider breaking down the document into smaller sections if possible, to reduce the initial load time.
Here are some resources that might help you:
Accessibility Guide: This guide provides insights into accessibility features and how to optimize them.