Open kossebau opened 9 years ago
I agree, some documentation to load external PDF files will be awesome. I need to do that, but no documentation or information about it.
Any suggestions or hint or sample for iframe to open it from external?
same here
cross-domain loading is not really viewerjs issue. google about CORS and cross-domain configurations. it depends (mostly) on the server the document is in.
To display files from another server Instead of a relative path to the local file one puts the complete url behind the # char, e.g. 'http://mytestviewerjsdomain/ViewerJS/index.html#http://domain/some/path/to/document.pdf'
See for related discussion comments on #91 and lookout for the current need to have url end with .pdf and CORS problems
I encounter the same problem! How to work around? Seem this repo is not active?
Idea to work around.
That proxy is not so good. I just found the way to do that for s3.
Add allow header origin
for the bucket. It works fine.
How to display PDFs from external servers seems to be a not uncommon problem. So this should be documented on viewerjs.org in some way.