GWT 文档格式转换器

发布于 2024-09-08 19:05:44 字数 231 浏览 0 评论 0原文

我正在寻找使用 GWT 制作一个小型应用程序来转换文档的方法 从一种格式到另一种格式。 主要是这些格式 .doc 、 .pdf 、 .odt 、 .rtf .. 也许还有一些 更多的。 以前有人尝试过这个吗? 我偶然发现了 JODConverter 图书馆,但它需要开放式办公室 已经安装了,不知道有多少人用过 过去带有 gwt。 请给我一些起始指示,或者如果有人有经验 有了这样的应用程序,一定要分享。 谢谢和问候, 罗希特

I am searching on ways to make a small app using GWT for converting documents
from one format to other.
Mainly these formats .doc , .pdf , .odt , .rtf.. and maybe a couple
more.
Has anyone tried this before??
I came across the library JODConverter but it needs open office to be
already installed and i don't really know how many people have used it
with gwt in past.
Please give me some starting pointers, or if anyone has experience
with this kind of app, do share.
Thanks and regards,
Rohit

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

和影子一齐双人舞 2024-09-15 19:05:44

几个月前我正在考虑实施这样的事情。
由于 GWT 将您的代码编译为 JavaScript,因此您无法在客户端执行此操作,JavaScript 无法访问文件系统。
因此,您需要先将文件上传到服务器,然后在服务器端进行转换,然后将转换后的文件发送回。
我以前从未听说过 JODConverter,我想使用的库是 Apache POI 。不幸的是我不能告诉你任何关于它的事情,因为我还没有尝试过。

I was looking into implementing something like this a few month ago.
Since GWT compiles your code to JavaScript there is no way for you to do that on the client side, JavaScript can't access the file system.
So you would need to upload the file to the server first and do the conversion on the server side and send the converted file back.
I have never heard of JODConverter before, the the library I wanted to use was Apache POI . Unfortunately I can't tell you anything about it, because I haven't tried it yet.

挽清梦 2024-09-15 19:05:44

听起来 JOD Converter 正是您所需要的,因为您正在考虑从 Java 进行多格式转换。您可以在服务器上安装 OpenOffice 并将其与 JOD Converter 链接起来。上传文档后,您的应用程序将调用 JOD Converter 来执行转换,并将转换后的文档流式传输回调用者。或者,您可以将文件放在某处,并将链接 (URL) 发送回调用者,以便他们可以获取文档。您还可以查看 JOD 报告Docmosis 如果您需要操作文档。

It sounds like JOD Converter is precisely what you need since you're looking at multi format conversions from Java. You would install OpenOffice on your server and link it up with JOD Converter. When a document is uploaded, your application would call JOD Converter to perform the conversion and stream the converted document back to the caller. Alternatively you can put the file somewhere, and send a link (URL) back to the caller so they can fetch the document. You can also look at JOD Reports or Docmosis if you need to manipulate the documents.

你在我安 2024-09-15 19:05:44

GWT 主要是一个客户端工具包。您是否正在尝试制作一个在客户端完成所有转换而无需服务器帮助的工具?在这种情况下,您应该寻找可以读取/转换所有这些格式的 JavaScript 库。如果您计划让用户将文件上传到服务器,那么您可以在服务器上使用任何您想要的技术,并且只需使用 GWT 作为 UI。

GWT is mostly a client side toolkit. Are you trying to make a tool that does all the conversion on the client side, with no help from the server? In that case, you should be looking for JavaScript libraries that can read/convert all those formats. If you are planning to have the user upload their files to the server, then you can use whatever technology you want on the server, and just use GWT for the UI.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文