Pdf documents not displaying when opened by Mac
Permalink
On a site I created, PDF documents are not opening when the user accesses the site via a Mac. Unfortunately I had not tested that page with a Mac before going public. Here is the page:
https://greaterbendrotary.org/grants-scholarships/grant-application...
Any suggestions are welcomed...
Todd
https://greaterbendrotary.org/grants-scholarships/grant-application...
Any suggestions are welcomed...
Todd
I'm using a Mac, and I can see the PDF just fine in Chrome, but not in Firefox or Safari - I haven't tested any other browsers as yet, but essentially, I think that the JS being used here is out of date.
I can see that the PDF Viewer block you are using is using an open source JS file pdfobject.js v1.2 - but the current version of this file is actually v2.1.1:
https://github.com/pipwerks/PDFObject/blob/master/pdfobject.min.js...
The examples of the up-to-date version appear to work fine on all the browsers mentioned above:
http://pdfobject.com/
I would recommend getting in touch with the Concrete5 addon developer to see if they can update their package to use the up-to-date version of the script, or if you wanted to build something new from scratch yourself it looks straight forward enough using the instructions on pdfobject.com.
Hope that helps!