I want to be able to open a document with a search already applied and the document open at the first search hit. Any other search hits will be listed on the Left Hand side, with this panel already viewable.
Is it possible to achieve this via a URL? i.e. something like &search=blue
If not, what is the recommended approach, that is reliable on all platforms, and reduced the delay or reloads before user sees search result.
Many thanks,
Richard.
var myWebViewer = new PDFTron.WebViewer({
config: "config.js",
...
...
}, viewerElement);
$(document).on('documentLoaded', function() {
readerControl.setVisibleTab(2);
$('#fullSearchBox').val('mysearchterm');
$('#fullSearchButton').trigger('click');
});