I did everything in https://drupal.org/node/1515868.
Then I added field with PDF.
Choosed "PDF default" view.
I can't see PDF but can see:
[an error occurred while processing this directive]
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | pdf_viewer-iframe_fix.patch | 667 bytes | a.milkovsky |
| 2013-07-11_1614.png | 17.82 KB | a.milkovsky |

Comments
Comment #1
a.milkovskyI've fixed it.
This issue inspired me https://github.com/mozilla/pdf.js/issues/2371?source=cc.
Issue was in iframe src. As written at pdf.js page we must "grab files from the build/generic folder".
So the iframe src link to "/build/generic/web/viewer.html" instead of "/web/viewer.html".
See the attached patch.
P.S. It seems you are still working in the master branch. For information on how to change that click here.
I've used 7.x-1.x branch
Comment #2
shenzhuxi commentedHave you tried 7.x-1.x-dev? I can't reproduce this bug.
About the patch, the default viewer should be used without "node make generic".
Comment #3
a.milkovskyI tried dev also.
hm. doesn't work without "node make generic"
Comment #4
a.milkovskyI checked.
Works without "node make generic" only on live server. localy doesn't work :(
Can you suggest what is the issue can be?
Comment #5
shenzhuxi commentedMaybe open the browser console to check local JS. Seems your browser can't access some JS/CSS files. It may be because of your local dev environment settings.
Comment #6
a.milkovskyno errors in js console.
But all files in build folder work fine...
Comment #7
a.milkovskyMaybe you use content of /build/generic/ folder? I tried use only files in /build/generic/ and it worked without patching
Comment #8
shenzhuxi commented