Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ricn/librex
Elixir library to convert office documents to other formats using LibreOffice.
https://github.com/ricn/librex
convert-office-documents elixir elixir-library libreoffice
Last synced: 4 days ago
JSON representation
Elixir library to convert office documents to other formats using LibreOffice.
- Host: GitHub
- URL: https://github.com/ricn/librex
- Owner: ricn
- License: mit
- Created: 2015-03-14T20:55:23.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-07-07T21:40:52.000Z (over 4 years ago)
- Last Synced: 2024-10-04T18:06:34.319Z (about 1 month ago)
- Topics: convert-office-documents, elixir, elixir-library, libreoffice
- Language: Elixir
- Homepage:
- Size: 134 KB
- Stars: 36
- Watchers: 5
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - Elixir library to convert office documents to other formats using LibreOffice. (Files and Directories)
- fucking-awesome-elixir - librex - Elixir library to convert office documents to other formats using LibreOffice. (Files and Directories)
- awesome-elixir - librex - Elixir library to convert office documents to other formats using LibreOffice. (Files and Directories)
README
Elixir library to convert office documents to other formats using LibreOffice.
[![Build Status](https://travis-ci.org/ricn/librex.png?branch=master)](https://travis-ci.org/ricn/librex)
[![Hex.pm](https://img.shields.io/hexpm/v/librex.svg)](https://hex.pm/packages/librex)
[![Inline docs](http://inch-ci.org/github/ricn/librex.svg?branch=master)](http://inch-ci.org/github/ricn/librex)## 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`:
```elixir
{:librex, "~> 1.0"}
```## Examples
```elixir
import Librexconvert("/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