Scribd API 嵌入器和 Internet Explorer 的问题(在 Drupal 中)
因此,我正在开展一个项目,其中客户在以前的开发人员为他们构建的网站上发现了问题。他们发现 Scribd iPaper 模块可以在 Firefox、Safari 和 Chrome 中正常加载安全文档,但在 Internet Explorer 中则不行。
在 IE 中,这该死的东西根本无法加载。该网站正在使用 Drupal iPaper 模块,我相信该模块是由 Scribd 资助的。它使用 Flash 阅读器(用于安全文档)。我会将其切换为使用较新的 HTML5 阅读器,但是他们需要保护文档,而 HTML5 阅读器不提供此功能。
我在互联网上寻找答案,但没有发现任何有用的东西。我怀疑可能存在与 CSS 或 JS 相关的问题(我们都知道 IE 是多么令人讨厌),但是当我从页面中删除所有这两个问题时,结果保持不变。
然后我尝试寻找替代解决方案并找到了 Embedit.in。制作了一个 PHP 库和一个 Drupal 模块,然后从本周一开始,他们的服务开始出现问题(不再转换上传的文件,他们声称服务器出现问题)。我查看了 docstoc,但为了使用他们的 API,你必须向他们发送电子邮件,因为他们由于垃圾邮件问题而禁用了请求表单。我已经给他们发了电子邮件但没有回复。我什至愿意与他们和全世界分享我自己制作和维护的 PHP 库和 Drupal 模块(这也是我打算对 Embedit.in 做的事情)。
我还研究了使用嵌入代码直接在浏览器中加载 PDF 的选项。在除 Firefox 之外的所有浏览器中都表现良好(在获取正确的插件时遇到问题,并且不像所有其他浏览器一样默认使用 Adobe Flash 插件)。
我也尝试在我的 Mac 上编译 PDF2SWF,但没有成功。我什至不确定是否可以在服务器上使用它,而且无论如何我都没有 SSH 访问产品服务器的权限(仅限 Subversion 部署)。
我已经到了穷途末路的地步了。有人有什么解决方案吗?
我需要以下能力:
- 保护文档
- 在 Windows 和 Mac 上的 IE、FF 和 Safari 中显示
- 直接在浏览器中显示,无需用户下载额外的插件(Flash 之外)。
- 能够以编程方式进行设置,并且这必须适用于 PDF。
谢谢!
So I am working on a project where a client discovered a problem on a site a previous developer built for them. They found that the Scribd iPaper module loads up secure documents fine in Firefox, Safari, and Chrome but not in Internet Explorer.
In IE the darn thing just doesn't load. The site is using the Drupal iPaper module which was funded by Scribd I believe. It is using the Flash reader (for secure documents). I would switch it over to using the newer HTML5 reader, however they need the document to be secured and the HTML5 reader does not offer a feature for that.
I have dug around on the Internet for answers and found nothing of use. I suspected a possible CSS or JS related issue (we all know how obnoxious IE can be), but when I removed all of both from the page the results stayed the same.
I then tried to find an alternative solution and found Embedit.in. Made a PHP Library and a Drupal module and then as of Monday of this week their service started going on the fritz (no longer converting uploaded files, they claim server problems). I looked into docstoc, but in order to use their API you have to email them since they disabled the request form due to spam problems. I have emailed them but with no reply. I even offered to share a PHP library and Drupal module that I will make and maintain myself with them and the world (which is what I intended to do with Embedit.in too).
I also looked into the option of using an embed code to directly load a PDF in the browser. Works great in everything except Firefox (has problems getting the right plugin and doesn't default to the Adobe Flash plugin like all the other browsers).
I have also tried compiling PDF2SWF on my Mac with no luck. I am not even sure if I could use that on the servers and I don't have SSH access to the prod server anyway (Subversion deployment only).
I am getting to the end of my ropes here. Anyone have any solutions for me?
I need the following abilities:
- Secure the documents
- Display in IE, FF, and Safari on Windows and Mac
- Display directly in the browser without requiring the user to download an extra plugin (beyond Flash).
- Be able to set it up programmatically and this has to work with PDFs.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Scribd 在 7 月份给我发了一条消息,说他们已经解决了这个问题。但我从未尝试过撤销我的解决方法。
我最终做的是我意识到,当 iPaper 模块将文件上传到服务器,然后上传到 Scribd 时,它会在完成后将文件保留在服务器上。由于记录了文件名,我只是修改了模块来检查正在使用哪个浏览器,如果是 IE,则使用嵌入代码并直接引用服务器上的文件。
这不是最好的解决方案,但它确实有效。我已将代码更改放在 PasteBin 上: http://pastebin.com/zYfcU3jq
Scribd sent me a message in July saying that they had fixed the problem. But I never tried undoing my workaround.
What I ended up doing is I realized that when the iPaper module uploads the file to the server and then to Scribd it leaves the file on the server when it is done. Since the filename is recorded I just modified the module to check which browser is being used and if IE then use an embed code and refer directly to the file on the server.
It isn't the best solution, but it works. I have put my code changes up on PasteBin: http://pastebin.com/zYfcU3jq