我正在为我的应用程序使用 pdfjs_rails gem ( https://github.com/shyammohankanojia/pdfjs_rails )
问题是,我看不到“演示模式”按钮。
我需要能够全屏查看文件。
我像这样渲染我的pdf查看器:
%iframe{ frameborder: "0", height: "500", scrolling: "no", src: "/pdfjs/web/viewer.html?file=#{file}", style: "border: 0", width: "100%" }
谢谢
编辑:
根据@CodeMaker 的回答,我使用了:
%iframe{ frameborder: "0", height: "500", scrolling: "no", src: "/pdfjs/web/viewer.html?file=#{file}", style: "border: 0", width: "100%", webkitallowfullscreen: "", mozallowfullscreen: "", allowfullscreen: "" }