是否可以使用 JavaScript 和 OpenOffice 构建网络办公应用程序?
我想写一个可以编辑OpenOffice文档ODF的网站,用户可以将ODF文件上传到网站,编辑它们,然后再次下载为ODF。
我该怎么做? docs.google.com 是如何做到的?
现在我想在服务器上尝试 OpenOffice (LibreOffice) UNO 编程,在网站上尝试 JavaScript,可以吗? 如果可以的话我该怎么做?
I want to write a web site which can edit OpenOffice document ODF, user can upload ODF file to website, edit them, and download them as ODF again.
How can I do this? And how does docs.google.com do it?
Now I want to try OpenOffice (LibreOffice) UNO programing at server and JavaScript on website, is it possible?
If it is possible, how can I do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一般来说。是的,你可以。
Open Office 是“开放”的,因此您可以通过浏览它的代码来了解 ODF 是如何创建和保存的。但是您应该找到所有 Open Office 文档的规范,它就在那里,这也是所有 Open Office 文档不久前被授予 ISO 标准的原因。
我认为应该有很多脚本可以将 doc 转换为 odf、pdf 转换为 odf、向后转换等,请尝试在谷歌上搜索您最喜欢的 php/python/ruby/java/其他提供此类解决方案的脚本。也许甚至有一个解决方案,将 PHP 的对象更改为 doc/odf/pdf 格式,并让将一种格式转换为另一种格式。
在浏览器中编辑它要困难得多并且需要更多的工作。但谷歌文档表明这是可能的。
简而言之,有很多工作,并且社区已经完成了一些工作。需要谷歌一下才能找到那些碎片。
In general. Yes you can.
Open office is 'open', thus you can by browsing it's code you can learn how ODF's are created and kept. But you should find specification of all open office documents, it's out there, and it's a reason why all open offices documents have been granted ISO standard a while ago.
I think there should be a plenty of already scripts that are converting doc to odf, pdf to odf, backwards and etc, try googling for your favorite php/python/ruby/java/other script that provides such solution. Maybe there is even a solution that is changing PHP's object into doc/odf/pdf format and let to convert one format into another.
Editing it in a browser that is much harder and requires a lot more work. But google docs shows it possible.
In few words, a lot of work, and some work already done by community. Need to a google bit to find that pieces.