Hi, I am new to this forum and to docx4j.
I have copied and pasted the first few lines from the main() method of CreateWordprocessingMLDocument.java into my code just to get started and am seeing errors.
Here is my code:
WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.createPackage();
wordMLPackage.getMainDocumentPart().addStyledParagraphOfText( "Title", "Hello world" );
wordMLPackage.getMainDocumentPart().addParagraphOfText( "from docx4j!" );
And here is the output in the log:
JAXB: RI not present. Trying Java 6 implementation.
JAXB: Using Java 6 implementation.
00:56:01,593 ERROR [docx4j.model.PropertyResolver] Style Normal is a root style.
00:56:01,608 ERROR [docx4j.model.PropertyResolver] Style DefaultParagraphFont is a root style.
00:56:01,614 ERROR [parts.WordprocessingML.MainDocumentPart] UNEXPECTED: org.docx4j.wml.Text
My project is a maven project, and I have manually installed the docx4j 2.6.0 .jar file, and the xalan 2.7.1 .jar file into my maven repository.
I hope this enough information for you to help me. If not, then please let me know what additional information I can provide.
Any help is greatly appreciated.