Package org.docx4j.wml

Examples of org.docx4j.wml.Body


    public void documentTraverse(PrintStream out) throws Docx4JException {
        WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.load(file);
        MainDocumentPart documentPart = wordMLPackage.getMainDocumentPart();

        org.docx4j.wml.Document wmlDocumentEl = (org.docx4j.wml.Document) documentPart.getJaxbElement();
        Body body = wmlDocumentEl.getBody();

        new TraversalUtil(body,

            new Callback() {
   
View Full Code Here


    // Before..
    // System.out.println(XmlUtils.marshaltoString(documentPart.getJaxbElement(), true, true));
   
    org.docx4j.wml.Document wmlDocumentEl = (org.docx4j.wml.Document) documentPart
        .getJaxbElement();
    Body body = wmlDocumentEl.getBody();
   
    fixRange(body.getContent(), "CTBookmark", "CTMarkupRange");
   
    // After
    System.out.println(XmlUtils.marshaltoString(documentPart.getJaxbElement(), true, true));
   
    wordMLPackage.save(new java.io.File("data/docx4j/Docx4jBookmarkDeleted.docx"));
View Full Code Here

TOP

Related Classes of org.docx4j.wml.Body

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.