Rust bindings to LibreOfficeKit
toml
[dependencies]
libreoffice-rs = 0.1
you need install LibreOffice, Debian 11 for example:
bash
$ sudo apt-get install libreoffice-core libreofficekit-dev
set env variable C_INCLUDE_PATH
to the LibreOffice headers, if you try to build LibreOfficeKit from source.
rust
use libreoffice_rs::wrapper::Office;
// your libreoffice installation path
let office = Office::new("/usr/lib/libreoffice/program");
let doc = office.document_load("/tmp/test.doc");
doc.save_as("/tmp/test.pdf", "pdf", None);