Package org.openxml4j.document

Examples of org.openxml4j.document.OpenXMLDocument


    try {
      // Destination folder
      File destFile = new File(demoCore.getTestRootPath() + "export");

      // Open the package
      OpenXMLDocument docx = OpenXMLDocument.open(demoCore.getTestRootPath() + "sample.docx",
          PackageAccess.READ);

      // Extract available thumbnails
      docx.extractParts(docx.getThumbnails(), destFile);

      System.out.println("Thumbnail(s) successfully extracted !");
    } catch (OpenXML4JException e) {
      e.printStackTrace();
    }
View Full Code Here

TOP

Related Classes of org.openxml4j.document.OpenXMLDocument

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.