pdfjs_rails:Fullscreen/PresentationMode 不可用
pdfjs_rails: Fullscreen/PresentationMode not available
我正在为我的应用程序使用 pdfjs_rails gem (https://github.com/shyammohankanojia/pdfjs_rails)
问题是,我看不到 "presentation mode" 按钮。
我需要能够全屏查看文件。
我像这样呈现我的 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: "" }
对于 pdf_rails 使用此
%iframe{ frameborder: "0", height: "500", scrolling: "no", src: "/pdfjs/web/viewer.html?file=#{file}", style="width: 100%; height: 1100px; display:inline-block " scrolling="yes" webkitallowfullscreen mozallowfullscreen allowfullscreen frameborder="no" }
我正在为我的应用程序使用 pdfjs_rails gem (https://github.com/shyammohankanojia/pdfjs_rails)
问题是,我看不到 "presentation mode" 按钮。
我需要能够全屏查看文件。
我像这样呈现我的 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: "" }
对于 pdf_rails 使用此
%iframe{ frameborder: "0", height: "500", scrolling: "no", src: "/pdfjs/web/viewer.html?file=#{file}", style="width: 100%; height: 1100px; display:inline-block " scrolling="yes" webkitallowfullscreen mozallowfullscreen allowfullscreen frameborder="no" }