Elixir library to convert office documents to other formats using LibreOffice.
Elixir
Latest commit f71224d Feb 13, 2017 @ricn committed on GitHub Merge pull request #6 from sergey-chechaev/brackets
Add contributor
Permalink
Failed to load latest commit information.
config
lib
test add brackets Feb 6, 2017
.gitignore Added support to generate documentation Mar 20, 2015
.travis.yml
LICENSE.txt
README.md add contributor member Feb 12, 2017
mix.exs Merge branch 'master' into brackets Feb 12, 2017
mix.lock Upgraded deps Feb 6, 2017

README.md

Librex

Elixir library to convert office documents to other formats using LibreOffice.

Build Status Hex.pm Inline docs

Requirements

LibreOffice must be installed. It's recommended that you add the soffice binary your PATH. Otherwise you have to specify the absolute path to the soffice binary as the last parameter.

Installation

Add this to your mix.exs file, then run mix do deps.get, deps.compile:

  {:librex, "~> 1.0"}

Examples

  import Librex

  convert("/Users/ricn/files/example.docx", "/Users/ricn/files/example.pdf")

  convert("/Users/ricn/files/example.docx", "/Users/ricn/files/example.odt")

  convert("/Users/ricn/files/example.docx", "/Users/ricn/files/example.pdf", "/path_to/soffice")

Credits

The following people have contributed ideas, documentation, or code to Librex:

  • Richard Nyström
  • Sergey Chechaev

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request