添加自定义形状的JTextPane并保存到新的Word文档 [英] Adding custom shapes to JTextpane and saved to new Word document
本文介绍了添加自定义形状的JTextPane并保存到新的Word文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我打开一个Word文档到的JTextPane
,是有办法,我可以砸在一个自定义形状,然后保存为一个新的Word文档?
If I load a Word document into a JTextPane
, is there a way I could drop a custom shape in it, then save it as a new Word document?
我在寻找的结果是,就像随地丢弃的形状上采用插入 - >形状的MS Word文档。
The results I'm looking for are just like dropping a shape anywhere onto the document using Insert-> Shapes in MS Word.
推荐答案
docx4all是一个基于Swing的DOCX编辑器。
docx4all is a Swing-based docx editor.
像DocxEditorKit,它是建立在docx4j之上。
Like DocxEditorKit, it is built on top of docx4j.
你需要把它扩大到支持你所描述的功能。
You'd need to extend it to support the functionality you are describing.
这篇关于添加自定义形状的JTextPane并保存到新的Word文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文