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

issues with mozilla--pdf.js #449

Open
ChrisCPO opened this issue Jul 17, 2019 · 0 comments
Open

issues with mozilla--pdf.js #449

ChrisCPO opened this issue Jul 17, 2019 · 0 comments

Comments

@ChrisCPO
Copy link

ChrisCPO commented Jul 17, 2019

https://rails-assets.org/#/components/mozilla--pdf.js

docs say:

//= require mozilla--pdf.js
//= require jquery
//= require jquery_ujs
//= require turbolinks

However this did not work, by digging through the gem.
I had to do:

//= require pdf.js.js
//= require jquery
//= require jquery_ujs
//= require turbolinks

Also I have come across issues post requiring this
(Uncaught ReferenceError: require is not defined).
I believe this gem needs built with the prebuilt 'pdfjs-dist' https://github.com/mozilla/pdf.js#using-pdfjs-in-a-web-application.

@ChrisCPO ChrisCPO changed the title mozilla--pdf.js require statement is wrong. issues with mozilla--pdf.js Jul 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant