Examples of OdfAlienElement


Examples of org.odftoolkit.odfdom.pkg.OdfAlienElement

  }
       
        @Test
        public void testExtractFromDocumentWithAlienElement() throws Exception {
            TextDocument document = TextDocument.newTextDocument();
            document.getContentRoot().appendChild(new OdfAlienElement(document.getContentDom(), OdfName.newName("instance")));
            document.addParagraph("Some text");
            TextExtractor extractor = TextExtractor.newOdfTextExtractor(document.getContentRoot());
            String text = extractor.getText();
            Assert.assertEquals("\nSome text", text);
        }
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.