You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's probably not the clean solution (should be done within findfromurlhash handler?) but I have patched our local version with this :
setHash: function PDFLinkService_setHash(hash) {
var pageNumber, dest;
if (hash.indexOf('=') >= 0) {
var params = parseQueryString(hash);
if ('search' in params) {
// If search param exist. Set it in Search bar find field.
// So that the user can use next occurent as expected.
var searchText = params['search'].replace(/"/g, '');
if (searchText) {
PDFViewerApplication.findBar.findField.value = searchText;
}
this.eventBus.dispatch('findfromurlhash', {
source: this,
query: searchText,
...
Link to PDF file (or attach file here):
Can be reproduced using the demo / sample : https://mozilla.github.io/pdf.js/web/viewer.html#search=language
Configuration:
Any
Any
Found in latest stable (v1.6.210), reproducible in online demo (1.7.378)
No
Steps to reproduce the problem:
What is the expected behavior? (add screenshot)
What went wrong? (add screenshot)
The text was updated successfully, but these errors were encountered: