webodf / ViewerJS

ViewerJS: Document Reader in JavaScript
http://viewerjs.org
1.94k stars 421 forks source link

Open pdf from URL #194

Open AlessandroAnnini opened 8 years ago

AlessandroAnnini commented 8 years ago

Hi. i have to open a pdf from a url so i need something like: http://<serverip>/ViewerJS/#http://<rest-of-pdf-url>

with ViewerJS v. 0.5.7 this is working (I have no CORS problems because i can access to the apache server)

but with the version 0.5.9 i see the ViewerJS UI without any pdf opened.

Is there a new way to use # when i specify the url for a pdf? Thanks!

kossebau commented 8 years ago

Hi. AFAIK there was no such change, the old way should still be the current and work as before. Is ViewerJS the only thing you updated? If you downgrade ViewerJS to the old version, does it work again? Please tell what you see in the web console for the page where you embed ViewerJS.

achopijocoder commented 7 years ago

@sun2rise I had the same trouble and changed the pdf.js and pdf.worker.js using the ones that includes an extension from chrome: in this link you can see the extension path for the chrome and the way to get the pdf.js and pdf.worker.js used in the extension that worked for me.