webodf / ViewerJS

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

pdf file ask to download. but dont show in viewr. it is empty #107

Closed tharakadoo closed 9 years ago

tharakadoo commented 9 years ago

pdf file ask to download but viewr shows empty. how to fix it?

a-lucas commented 9 years ago

Same problem here.

The pdf is accessed via Zend 's action which generate a pdf file on the fly with readfile(). it is accessible from /getDocument/123

when I go : http://mydomain.com/getDocument/123, I download a PDF file.

But when I try :

 http://mydomain.com/js/lib/ViewerJS/#../../../getDocument/123

I got an empty page.

kossebau commented 9 years ago

Duplicate of #27, thus closing now. Please see that issue also to learn about it being dealt with in today's release of ViewerJS 0.5.5.