-
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
getDocument is not a function #9075
Comments
Please provide complete example. |
Where can i find an example of the latest code being used with require? |
I don't understand this question. require() is not a native JavaScript API method and shall be used in some context (with webpack or node.js). Examples can be found at https://github.com/mozilla/pdf.js/tree/master/examples . You might need to check webpack or node examples. Closing as answered. |
thanks anyway.... |
Did you by any chance use the PDF.js source files, e.g. the ones in https://github.com/mozilla/pdf.js/tree/master/src, as-is previously? |
Hi guys, we love PDFJS here. It has been working great for awhile, but we're upgrading all our js libraries and I just upgraded to the newest version yesterday.
Now I'm stuck.
I'm getting an error "PDFJS.getDocument is not a function". I've tried setting the worker path and disabling the worker as suggested in other issues and neither helps. I'd rather not disable the worker if i don't have to.
here is the failing code.
It's probably worth mentioning that the documentation should have a section covering how to use pdfjs with require as digging through issues that are years old is not super helpful.
The text was updated successfully, but these errors were encountered: