The UI behavior is that the Search Box open, displaying the searchPattern and the found text is highlighted.
Is there a setting to not open the Search Box in the UI and not highlight the text. What I’m trying to do is find the text, get it’s position and draw an annotation.
Thanks
Expected behaviour
{Provide a screenshot or description of the expected behaviour}
Does your issue happen with every document, or just one?
{Answer here}
Link to document
{Provide a link to the document in question if possible}
Share how you are using PDF.js Express in your organization you could win a $500 Amazon gift card. All participants will receive 6 months of PDF.js Express+ for free. Learn more here
And here is the guide on changing highlight colours:
Best Regards,
Kevin Kim
Web Development Support Engineer
PDFTron Systems, Inc.
Share how you are using PDF.js Express in your organization you could win a $500 Amazon gift card. All participants will receive 6 months of PDF.js Express+ for free. Learn more here
Thanks Kevin, while I can work with this solution, ideally, I’d like to prevent the search box from opening all together.
The effect of using instance.UI.closeElements() is that by default the search box opens, then when closeElements() is called, you can see it closing.
What your solution actually made me think of, which works for me, is to add ‘SearchPanel’ to my instance.disableElements([‘SearchPanel’]) list.
Then enable it later for manual searching. So after my search is completed, I added this.
Best Regards,
Kevin Kim
Web Development Support Engineer
PDFTron Systems, Inc.
Share how you are using PDF.js Express in your organization you could win a $500 Amazon gift card. All participants will receive 6 months of PDF.js Express+ for free. Learn more here