-
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
build without the generic viewer #8292
Comments
If you just want to use the API, you can use https://github.com/mozilla/pdfjs-dist ( If you want to build it yourself, |
Shouldn't it work if I copy |
if you install pdfjs-dist as a package, |
I dont get it.. I just need the mentioned I also need textselection I get this error
Here I use
hello.jsHere I use
|
It looks like you're using the I would advice to first try to get the provided examples (in the |
Actually I have used an about 1-2 years old version of PDF.js in a previuos project.. At that time it was really easy to get it running.. I cant say that now.. Have already tried the simpleviewer version but cant make anything work.. But will give it one more try |
What is
I'm trying out Is it not possible just to grap |
I tried this in an empty folder:
Then I visited http://localhost:8888/examples/components/simpleviewer.html where I see this in the console:
So it's not just you; something seems to have regressed in the recent ES6 conversion (judging by the underscores, it may be Babel). Reopening and labeling as a regression for now. |
But a very striped version (without the generic viewer) only with And without all these new "helper" files around it.. Its just noise :) |
The regressions have been fixed and the examples are working again. The steps outlined in #8292 (comment) should make all examples work for you as well. I think most problems you decribed happened because we have been refactoring the codebase to use ES6 syntax and you uncovered something we forgot about during the refactoring. The |
I just need to use the API (I want to create a custom viewer)
How to...
The text was updated successfully, but these errors were encountered: