-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting chunk size by URL options #9782
Comments
First of all, as mentioned in multiple places the default viewer isn't intended to be used as-is without modification; see e.g. https://mozilla.github.io/pdf.js/getting_started/#introduction and https://github.com/mozilla/pdf.js/wiki/Setup-pdf.js-in-a-website#from-examples
However there's a work-around available, as is explained in the FAQ; see https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#file. Hence it's possible to load the viewer without opening a PDF file, e.g. try https://mozilla.github.io/pdf.js/web/viewer.html?file= and then calling Lines 692 to 701 in 76337fd
Allowing hash parameters to control various API options in this way has the potential to be a huge performance footgun, which is why it's purposely disabled in PR #4956. (The fact that it ever worked was a bug, and not a feature.) |
Is there a way to configure chunk size by using the official pdf.js viewer (params after the ? or # in the URL) and without changing the source code ?
If not, is it planned to implement this functionality in a future pdf.js version ?
The text was updated successfully, but these errors were encountered: