-
Notifications
You must be signed in to change notification settings - Fork 127
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
PDF Page Content not rendered #46
Comments
Ref issue #47 for the package mismatch error. |
I downloaded url: "/rfc7540.pdf", //process.env.VUE_APP_PDF_URL, ... and I have the same problem. Perhaps there is an issue with the pdf document? |
@dcolley Hi. I tried hardcoding another pdf file like you did, but am getting the following error: I placed the pdf file in src and wrote as follows: and I get the error mentioned above. Do you have any ideas? Thanks. |
@ScarletBlue are you sure the PDF is served by your app? It looks like you're getting html. The file should be located in What do you get from http://localhost:3000/sample.pdf |
@dcolley the location was the issue. Thanks! |
Hi,
git clone https://github.com/rossta/vue-pdfjs-demo cd vue-pdfjs-demo npm install npm run serve
I had to update my vue to get the demo to run:
I can see the number of pages:
... but the page content is not displayed.
In console we see this error:
The text was updated successfully, but these errors were encountered: