Examples of refactorStyles()


Examples of com.adobe.dp.epub.opf.Publication.refactorStyles()

      Publication epub = new Publication(file);
      epub.parseAll();
      epub.cascadeStyles();
      System.out.println("Loaded \"" + epub.getDCMetadata("title") + "\"");
      long start = System.currentTimeMillis();
      epub.refactorStyles();
      long end = System.currentTimeMillis();
      System.out.println( "Refactored styles in " + (end - start) + "ms");
      //epub.addFonts();
      FileOutputStream out = new FileOutputStream(args[1]);
      epub.serialize(new OCFContainerWriter(out));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.