Have a look in the styles part (styles.xml). There you'll see, for example:
<w:style w:type="paragraph" w:styleId="Heading1">
<w:name w:val="heading 1"/>
It is currently Tue Aug 19, 2025 5:15 am
mmoselhy wrote:Can I get the style of text object directly or can I get the paragraph for text object?
or should I traverse and keep the paragraph for each text to get the style from ?
mmoselhy wrote:also, sometimes ...
mmoselhy wrote:Can I get flow chart objects information ?
mmoselhy wrote:What about comments and bookmarks in the word document?
DocumentSettingsPart dsp = documentPart.getDocumentSettingsPart();
CTSettings objCTSettings = dsp.getJaxbElement();
ObjectFactory factory = Context.getWmlObjectFactory();
CTView ctView = factory.createCTView();
ctView.setVal(STView.PRINT);
objCTSettings.setView(ctView);
BooleanDefaultTrue b = new BooleanDefaultTrue();
b.setVal(true);
objCTSettings.setUpdateFields(b);
dsp.setJaxbElement(objCTSettings);
documentPart.addTargetPart(dsp);
Total posts 10189 • Total topics 2867 • Total members 2097