public
Created

  • Download Gist
untitled_odttest.iml
1 2 3 4 5 6 7 8 9 10 11 12
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="odfdom-java-0.8.7-javadoc" level="project" />
</component>
</module>
untitled_src_Test.java
Java
1 2 3 4 5 6 7 8 9 10 11 12
import org.odftoolkit.odfdom.doc.OdfTextDocument;
 
import java.io.File;
 
public class Test {
 
public static void main(String args[]) throws Exception {
OdfTextDocument odt = OdfTextDocument.newTextDocument();
odt.addText("Check");
odt.save(new File("C:/myfile.odt"));
}
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.