Skip to content

Instantly share code, notes, and snippets.

@dfuenzalida
Created June 4, 2014 01:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dfuenzalida/a1e9755e9b2e7f638620 to your computer and use it in GitHub Desktop.
Save dfuenzalida/a1e9755e9b2e7f638620 to your computer and use it in GitHub Desktop.
(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)))
(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