WorldsEndless wrote:I'm getting "P" objects instead of "Text" objects
Text objects sit inside run (R) objects, which sit within paragraphs (P). Nothing has changed here.
WorldsEndless wrote:have no setContent method available
That's available in your main document part object, in recent versions of docx4j:
Using java Syntax Highlighting
/**
* Set the contents of this part.
* (Just an alias/synonym for setJaxbElement())
* @param jaxbElement
* @since 3.0
*/
public void setContents
(E jaxbElement
) {
this.
jaxbElement = jaxbElement
;
}
Parsed in 0.015 seconds, using
GeSHi 1.0.8.4
In general, I'd recommend you create the content you want in Word (ie your title page), then generate code based on that using the docx4j webapp or Helper Word Add-In.