Import / Export Search Results

Which product are you using?
PDF.js Express Plus

PDF.js Express Version
8.3.0

Detailed description of request
We have documents that have many pages, and sometimes we have searches that take a while to complete due to the amount of pages needing searched.

It would be great if we could import and export a search result json structure which would allow us to quickly import a previously exported search on a document.

Our reason for this is to speed up the load times for common keywords we have users looking for in our documents. Thanks!

Expected behaviour

  • Ability to add an event listener for a search completion
  • Export the search in a usable format
  • Import the search and have it appear the same as before (highlights, search panel open, displaying results, etc)