Hello,
Sorry for my english in advance because i'm not a native speaker. I'm new in this forum and docx4j.
I have created a kind of template document in which i want to store all my styles (such as heading 1/2/3/4, normal and so on)
I load the styles of this document in a new document
//get styles from old document
WordprocessingMLPackage oldPkg = WordprocessingMLPackage.load(oldDoc);
Styles oldStyles = (Styles)oldPkg.getMainDocumentPart().getStyleDefinitionsPart().getJaxbElement();
//apply styles from old document ...