Package org.docx4j.model.datastorage

Examples of org.docx4j.model.datastorage.OpenDoPEReverter


 
  public static void reverter(String inputfilepath, String instancePath) throws Docx4JException {
   
    WordprocessingMLPackage instancePkg = WordprocessingMLPackage.load(new java.io.File(instancePath));   
   
    OpenDoPEReverter reverter = new OpenDoPEReverter(
        WordprocessingMLPackage.load(new java.io.File(inputfilepath)),
        instancePkg);
   
    System.out.println("reverted? " + reverter.revert() );
   
    SaveToZipFile saver = new SaveToZipFile(instancePkg);
    saver.save(filepathprefix + "_reverted.docx");
    System.out.println("Saved: " + filepathprefix + "_reverted.docx");
   
View Full Code Here

TOP

Related Classes of org.docx4j.model.datastorage.OpenDoPEReverter

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.