RTF file related issue in Java
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);
精彩评论