Package com.adobe.dp.epub.opf

Examples of com.adobe.dp.epub.opf.Resource


  public void cascadeStyles() {
    CascadeEngine engine = new CascadeEngine();
    Iterator s = styleResources();
    while (s.hasNext()) {
      ResourceRef ref = (ResourceRef) s.next();
      Resource r = ref.getResource();
      if (r instanceof StyleResource) {
        StyleResource sr = (StyleResource) r;
        Stylesheet stylesheet = sr.getStylesheet();
        if (stylesheet != null) {
          CSSStylesheet css = stylesheet.getCSS();
View Full Code Here


            File fcover=new File(getCoverPath());
            if(fcover.exists()){
                try {
                    HTMLElement covelem=getCoverResource().getDocument().createElement("div");
                  
                    Resource r=addImage(fcover.getAbsolutePath(), covelem,getCoverResource());
                    if(r!=null){
                      r.setId("cover-image");
                      getEpub().addMetadata(null, "cover", "cover-image");
                      //
                      covelem.setClassName("cover");
                      Selector selector = getStylesheet().getSimpleSelector("div", "cover");
                      SelectorRule rule = getStylesheet().getRuleForSelector(selector, true);
View Full Code Here

TOP

Related Classes of com.adobe.dp.epub.opf.Resource

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.