Require.js Missing for PDF.js

276 views
Skip to first unread message

Matthew Prythero

unread,
Dec 30, 2016, 12:34:14 PM12/30/16
to islandora-dev
Hi All - Back again....

I've run into an issue with PDF.js as you can see below in the attached image, I get the template for the PDF.js viewer, but the document is no where to be found.




Now, after a series of checks I have found that the PDF is accessible, it is where it's supposed to be structure-wise and in regards to the XML data.


It appears to not be working due on part to this error that popped up in my network utility checker in Firefox: http://localhost/drupal/drupal/sites/all/libraries/pdfjs/node_modules/requirejs/require.js


I have found out through another post (https://groups.google.com/forum/#!msg/islandora/uiCVpL2ecKA/ka-URF4LHgAJ) in this group that it is likely I installed the incorrect PDF.js library, but the post doesn't clarify as to what should be downloaded rather than what both the installation guide and readme file for the PDF.js Module state.


So besides going to http://mozilla.github.io/pdf.js/getting_started/ or using



Where should I go to get the correct pdf.js library where it does have the folder: node_modules and underneath that the proper "require.js" file.


Thanks (again) -


Matt

Phil Redmon

unread,
Dec 30, 2016, 5:05:33 PM12/30/16
to islandora-dev

We ran into this issue. I solved it by deleting the PDF.js library and using drush to install as noted [1].

[1] https://wiki.duraspace.org/display/ISLANDORA/Islandora+PDF.js


--
You received this message because you are subscribed to the Google Groups "islandora-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to islandora-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/islandora-dev/1d048d66-3dba-451c-ac75-fee4e33b463c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages