Created
June 4, 2014 01:51
-
-
Save dfuenzalida/a1e9755e9b2e7f638620 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns clj-odfdom.core | |
(:import [org.odftoolkit.odfdom.doc OdfTextDocument])) | |
;; Based on http://stackoverflow.com/a/13107088/483566 | |
(defn -main [& args] | |
(let [document (OdfTextDocument/loadDocument "test.odt") | |
texts (.getTextContent (.getContentRoot document))] | |
(println texts))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defproject clj-odfdom "0.1.0-SNAPSHOT" | |
:description "FIXME: write description" | |
:url "http://example.com/FIXME" | |
:license {:name "Eclipse Public License" | |
:url "http://www.eclipse.org/legal/epl-v10.html"} | |
:dependencies [[org.clojure/clojure "1.5.1"] | |
[org.odftoolkit/odfdom-java "0.8.7"]] | |
:main clj-odfdom.core) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment