-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Current version does not seem to work, in none browsers!! #9526
Comments
|
|
|
So strange, I have untouched my code and suddenly this error. I see the same error on the example pages as well. Reproduced it, visit: http://mozilla.github.io/pdf.js/examples/index.html#interactive-examples In Safari it says: ReferenceError: Can't find variable: PDFJS |
I changed my code to:
Next error is: PDFJS.getDocument is not a function |
Solution: download a version from 10 days ago and host it yourself: https://github.com/mozilla/pdfjs-dist/tree/ba20b1adfcad8a5d9f6126b37062d52f3bd524b2 |
The 'good' solution is to replace PDFJS with pdfjsDistBuildPdf. The problem occurred after this commit: b8606ab |
(Github always lock my accounts when i enter wrong login informations, because of that i now created one account more...;) "Please wait a while and try again later." -> And WTF means "a while"...?? A minute, a hour, a day, a week, a month...?) In your case, i would change the example's source on https://mozilla.github.io/pdf.js/examples/ I still can't believe that im the 1st person who realize that the example source code is wong...;) However, thank you for your feedbacks. Will try it as soon as possible... |
I reported the same thing in #9525 but it was closed as invalid :( . Basically they broke backward compatibility. |
Oh, i didn't saw that. |
Two days ago we merged the pull request that removed the global Edit: We also have #9440 to more clearly state that it is a nightly build and should be pinned by consumers. |
The examples have been fixed now. |
Attach (recommended) or Link to PDF file here:
http://cdn.mozilla.net/pdfjs/helloworld.pdf
Configuration:
Steps to reproduce the problem:
What is the expected behavior? (add screenshot)
That it shows the PDF's content "Hello, world!" (http://cdn.mozilla.net/pdfjs/helloworld.pdf) in the rectangle!
What went wrong? (add screenshot)
https://image.ibb.co/hUz1JS/Unbenannt.jpg
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):
https://mozilla.github.io/pdf.js/examples/
The text was updated successfully, but these errors were encountered: