Hi,
I was trying to add the bookmark for a particular content(RunIns or RunDel) in the document. the program run's success however the added bookmark is not affected in the output document.
Requesting your advice to fix this.
Thanks in advance!!
List<Object> runInsList = getAllElementFromObject(wordMLPackage.getMainDocumentPart(), RunIns.class);
for(Object runIns: runInsList){
RunIns ins = (RunIns) runIns;
if(ins.getId().equals(i)){
System.out.println("--------------in Run ins----------"+ins.getAuthor()+"------"+ins.getId());
ObjectFactory factory = Context.getWmlObjectFactory();
BigInteger ID = BigInteger.valueOf(123456);
CTMarkupRange mr = factory.createCTMarkupRange();
mr.setId(ID);
JAXBElement<CTMarkupRange> bmEnd = factory.createBodyBookmarkEnd(mr); ...