Elixir library to convert office documents to other formats using LibreOffice.
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.
Add this to your mix.exs
file, then run mix do deps.get, deps.compile
:
{:librex, "~> 1.0"}
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")
The following people have contributed ideas, documentation, or code to Librex:
- Richard Nyström
- Sergey Chechaev
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request