Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持pdf书籍的在线阅读 #9

Open
caok opened this issue May 11, 2013 · 19 comments
Open

支持pdf书籍的在线阅读 #9

caok opened this issue May 11, 2013 · 19 comments
Assignees

Comments

@caok
Copy link
Member

caok commented May 11, 2013

在线阅读pdf,可以试试 pdf.js
或者有没有更好的方案

@caok
Copy link
Member Author

caok commented May 11, 2013

在线阅读时如何去加载pdf?如果要加载整本书之后才能开始阅读,势必要耗费很多资源、时间。。。有什么比较好的方案?

@songjiayang
Copy link

@caok 这个可以查找下,应该有的。异步传输是否可以?

caok added a commit that referenced this issue May 12, 2013
@songjiayang
Copy link

i find the gem https://github.com/yob/pdf-reader maybe can work well....

@songjiayang
Copy link

@caok @hlee
I think the common function is translate pdf to images, ....but there are some problem.like this ....https://gist.github.com/songjiayang/5568731

@caok
Copy link
Member Author

caok commented May 15, 2013

@songjiayang 看看有没有在线加载pdf的呢,
转成图片了要多一步转换的处理,而且照你实验下来转换成图片的效果也不行

@jerry134
Copy link

https://github.com/yoozi/swf-docs-generator 可不可以考虑转换成html 之后看呢?

@caok
Copy link
Member Author

caok commented May 15, 2013

@jerry134 赞啊,不过好像文档比较少,知道怎么用不?

@jerry134
Copy link

@caok 目前还不知道怎么样 在微博上看到的这个 稍后应该会有部署说明什么的吧

@caok
Copy link
Member Author

caok commented May 20, 2013

@songjiayang 在线阅读的弄的怎么样了,我也来研究下吧

@hlee hlee closed this as completed in ec123f5 May 22, 2013
@caok caok reopened this May 31, 2013
@caok
Copy link
Member Author

caok commented May 31, 2013

pdf2htmlEX

@caok
Copy link
Member Author

caok commented Jun 7, 2013

@hlee 像这种read while downloading的效果,是怎么实现的?

@ghost ghost assigned caok Jun 14, 2013
@caok
Copy link
Member Author

caok commented Jun 14, 2013

需要细化功能,待补充功能:
1.最好能读出当前的页数
2.转化为多页pdf的模式
3.read while downloading
4.转化需要较多的时间

@songjiayang
Copy link

@caok 这个你有研究吗?除了你说的第3点,貌似都可以做到,不过第3点如果深入研究也是可以的。。https://github.com/mozilla/pdf.js

http://mozilla.github.io/pdf.js/

@songjiayang
Copy link

@caok 我把在线阅读这个搞定了,基本实现了你提出的4个需求。。。

@caok
Copy link
Member Author

caok commented Aug 3, 2013

@songjiayang 这个我之前也有看过,你那有具体例子不,给我看看效果,特别是read while downloading
你重新做个页面给个PR看看效果怎么样的,我现在用的是pdf2htmlEX,效果不好,到时哪个效果好就用哪个

@songjiayang
Copy link

@caok 我是直接模仿的这个http://mozilla.github.io/pdf.js/web/viewer.html ,但是貌似还是没有实现 read while downloading ,具体作出来的效果就是这样 http://weidaxue.me:4000/resources/1/read

@caok
Copy link
Member Author

caok commented Aug 4, 2013

赞!,我下午的时候看下,刚看到你的代码了,学习下,

@songjiayang
Copy link

恩,代码可以抽离出来做个gem .像https://github.com/concordia-publishing-house/pdfjs-rails , 我做完了才发现这个gem .不过手动做一遍就基本明白原理,然后我可以看看它这个方便用不,如果不太方便的话,我们就可以按照自己的需求做成gem.现在貌似异步加载还是不理想。。

@caok
Copy link
Member Author

caok commented Aug 4, 2013

恩,我也发现了,加载的时候比较慢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants