How to copy a paragraph of .docx to another .docx with Java and retain the style
问题 I am trying to copy the content from a particular paragraph in a .docx to another empty .docx .the problem i have is that the style,bullets,numbering etc from the source.docx is not retained in the destination .docx.Here is my code can anyone please tell me what are the changes to be added to the above code? Thanks in Advance!! public class WordFinal { public static void main(String[] args) throws IOException, XmlException { XWPFDocument doc = new XWPFDocument(new FileInputStream("source.docx