- Code: Select all
org.docx4j.wml.ObjectFactory factory = new org.docx4j.wml.ObjectFactory();
org.docx4j.wml.CTBookmark bookmarkStart = factory.createCTBookmark();
bookmarkStart.setName("something");
Unfortunately I can't figure out how to create a BookmarkEnd. Reading the forum I found this thread http://dev.plutext.org/forums/viewtopic.php?f=6&t=161&hilit=CTBookmark&sid=62b7ec089f118a4202d955b5dc51fff1 and though that perhaps BookmarkEnd is represented by org.docx4j.wml.CTMarkupRange. However when I insert ...