Skip to content
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

Demo page #78

Open
focussing opened this issue Mar 17, 2018 · 7 comments
Open

Demo page #78

focussing opened this issue Mar 17, 2018 · 7 comments
Labels

Comments

@focussing
Copy link

Hello!

Am I doing something wrong?
I only see a white rectangle in the lower right bottom of the screen.
It refreshes to white when I click on 'run'.
Or is there something wrong with the demo page?

@robopeter
Copy link

I'm seeing the same thing (white box).

Chrome 64.0.3282.186
Linux Host

Chrome Developer Tools shows this error (probably not super useful, but who knows)

Inline Babel script:520 
Uncaught TypeError: Cannot set property 'workerSrc' of undefined
    at <anonymous>:451:24
    at run (babel.js:60802)
    at check (babel.js:60868)
    at loadScripts (babel.js:60909)
    at runScripts (babel.js:60936)
    at transformScriptTags (babel.js:324)

@FranckFreiburger
Copy link
Owner

Demo page is currently broken, I have to find a better way to expose a demo

@focussing
Copy link
Author

Hello, do you already have a solution? Just to check how this works before I use it in a project?

This was referenced Nov 27, 2018
@dermansi
Copy link

Mozilla took down their PDF (https://cdn.mozilla.net/pdfjs/tracemonkey.pdf), thats why the component can't render any.

Just replace the PDF file on the demo page with another one.

@Laz75
Copy link

Laz75 commented Jan 30, 2019

I noticed that by adding this line before the workerSrc one (and using an existing PDF) everything works:
window.PDFJS = window['pdfjs-dist/build/pdf'];

@GFabien
Copy link

GFabien commented Jun 7, 2019

@Laz75 is right, you can set the PDFJS property of the window with
window.PDFJS = window['pdfjs-dist/build/pdf'];
and update the default pdf file with a new one (https://raw.githubusercontent.com/mozilla/pdf.js/ba2edeae/examples/learning/helloworld.pdf for example) and it should be working

@MOAB7698
Copy link

I add window.PDFJS = window['pdfjs-dist/build/pdf']; and pdate the default pdf file with a new one but dont work yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants