【发布时间】:2016-06-24 13:25:27
【问题描述】:
我正在为我的应用程序使用 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: "" }
【问题讨论】:
标签: ruby-on-rails pdf rubygems pdf.js