Package org.docx4j.finders

Examples of org.docx4j.finders.CommentFinder


    org.docx4j.wml.Document wmlDocumentEl = (org.docx4j.wml.Document) documentPart
        .getJaxbElement();
    Body body = wmlDocumentEl.getBody();
 
    CommentFinder cf = new CommentFinder();
      new TraversalUtil(body, cf);
 
      for (Child commentElement : cf.getCommentElements()) {
          System.out.println(commentElement.getClass().getName());
          Object parent = commentElement.getParent();
          List<Object> theList = ((ContentAccessor)parent).getContent();
          boolean removeResult = remove(theList, commentElement );
          System.out.println(removeResult);
View Full Code Here

TOP

Related Classes of org.docx4j.finders.CommentFinder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.