Convert between any document format supported by LibreOffice/OpenOffice.
- Using LibreOffice listener mode - This lowers the CPU load when converting many documents with somewhere between 50% and 75%
- Auto-detecting file format
- Supports all document formats supported by LibreOffice/OpenOffice
- Apache OpenOffice or LibreOffice; the latest stable version is usually recommended.
To use office-converter
, add this to your Cargo.toml
:
[dependencies]
office-converter = "0.1.0"
Then, on your main.rs
use office_converter::{OfficeManager, Converter};
fn main() {
let mut om = OfficeManager::new();
om.start();
let con = Converter::new();
con.convert("E:/test.pptx", "E:/test.pdf");
om.stop()
}