Java 中 RTF 文件相关问题
我在 Java 小程序中创建了 RTF 编辑器。
我想使 Microsoft RTF 文件在网页上可编辑,但问题是当我尝试使用高级 rtfeditorkit 读取 RTF 文件时,它会读取 RTF 文件,但无法读取图像属性,并且所有类型的对象,例如表属性。
我想要以我们可以在 Microsoft Word 中看到的格式输出 RTF 文件,有没有办法在 Java 中做到这一点?
这是我的代码:
HttpURLConnection serverCon = getConnection();
fi = serverCon.getInputStream();
AdvancedRTFDocument advDoc= new AdvancedRTFDocument();
advDoc = (AdvancedRTFDocument) editor.getDocument();
editor.setDocument(advDoc);
editor.read(fi,advDoc);
I have created RTF editor in Java applet.
I want to make Microsoft RTF file editable on web page, but the issue is when I try to read RTF file with advanced rtfeditorkit, it will read RTF file but it is not able to read the image properties and all kind of objects like table properties.
I want the output of RTF file in format which we can see in Microsoft Word, is there any way to do that in Java?
Here is my code:
HttpURLConnection serverCon = getConnection();
fi = serverCon.getInputStream();
AdvancedRTFDocument advDoc= new AdvancedRTFDocument();
advDoc = (AdvancedRTFDocument) editor.getDocument();
editor.setDocument(advDoc);
editor.read(fi,advDoc);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论