Package org.docx4j.finders

Examples of org.docx4j.finders.ClassFinder


    String inputfilepath = System.getProperty("user.dir") + "/checkbox.docx";
       
    WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.load(new java.io.File(inputfilepath));   
    MainDocumentPart documentPart = wordMLPackage.getMainDocumentPart();
       
    ClassFinder finder = new ClassFinder(FldChar.class); // <----- change this to suit
    new TraversalUtil(documentPart.getContent(), finder);
   
    System.out.println("got " + finder.results.size()  );
   
    for (Object o : finder.results) {
View Full Code Here

TOP

Related Classes of org.docx4j.finders.ClassFinder

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.