Package org.pdf4j.saxon.dom

Examples of org.pdf4j.saxon.dom.NodeWrapper


    public NodeInfo setSource(Source source) throws org.pdf4j.saxon.trans.XPathException {
        if (source instanceof DOMSource) {
            Node node = ((DOMSource)source).getNode();
            String baseURI = source.getSystemId();
            DocumentWrapper documentWrapper = new DocumentWrapper(node.getOwnerDocument(), baseURI, config);
            NodeWrapper nodeWrapper = documentWrapper.wrap(node);
            if (stripSpace) {
                StrippedDocument sdoc = new StrippedDocument(documentWrapper, AllElementStripper.getInstance());
                return sdoc.wrap(nodeWrapper);
            } else {
                return nodeWrapper;
View Full Code Here

TOP

Related Classes of org.pdf4j.saxon.dom.NodeWrapper

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.