Package com.adobe.dp.epub.ops

Examples of com.adobe.dp.epub.ops.HTMLElement


          
           
            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);
                      rule.set("width", new CSSName("100%"));
                      rule.set("text-align", new CSSName("center"));
                      getCoverResource().getDocument().getBody().add(covelem);
View Full Code Here


        // fn.add(ar);
        OPSResource temp = getCurrentResource();
        setCurrentResource(getFootnotesResource());
        traverse((Node) getXpath().evaluate(".//text:note-body", e, XPathConstants.NODE), fn);
        HTMLElement dst = (HTMLElement) fn.getLastChild();
        while (dst.getLastChild() != null && dst.getLastChild() instanceof Element
                && ((Element) dst.getLastChild()).getElementName().equals("p")) {
            dst = (HTMLElement) dst.getLastChild();
        }
        dst.add(ar);

        setCurrentResource(temp);
        _hasFootnotes=true;
        return fn;
    }
View Full Code Here

TOP

Related Classes of com.adobe.dp.epub.ops.HTMLElement

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.