-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
PDFJS.getDocument().then is not working, not file is loaded no callbacks are triggered, not errors in console. #5344
Comments
Works for me at http://mozilla.github.io/pdf.js/examples/learning/helloworld.html. Please provide more details as requested at https://github.com/mozilla/pdf.js/blob/master/CONTRIBUTING.md |
Also with STR:
|
Updating to latest PDF.js fixed the issue. |
same case not working PDFJS.getDocument('\pdfjs\files'); Promise {[[PromiseStatus]]: "pending", [[PromiseValue]]: undefined} can anyone resolve this ??? |
I had this same issue when trying to use PDFJS inside a Chrome extension content script. Chrome extensions content scripts disallow the use of document.currentScript which PDFJS relies upon in order to load the pdf.worker.js script. Instead I manually edited pdf.js to reference a chrome extension URL via the Chrome extension API call: PDFJS.workerSrc = chrome.extension.getURL("libs/pdf.worker.js"); Where libs/pdf.worker.js was the relative location inside my Chrome extension. Not sure if that helps but I found this issue page from googling for my issue. See my copy of pdf.js here https://github.com/fcfort/betterment-csv-chrome/blob/master/libs/pdf.js |
To reproduce:
Console returns
Alert never happens, no xhr calls are fired.
Version info: 1.0.233, build d39af0a
The text was updated successfully, but these errors were encountered: