Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brrd/loconvert
Convert office documents in Node.js using LibreOffice
https://github.com/brrd/loconvert
convert converter document libreoffice soffice
Last synced: 5 days ago
JSON representation
Convert office documents in Node.js using LibreOffice
- Host: GitHub
- URL: https://github.com/brrd/loconvert
- Owner: brrd
- License: mit
- Created: 2021-03-30T20:50:44.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-04-14T11:26:32.000Z (over 3 years ago)
- Last Synced: 2024-10-23T23:15:26.140Z (20 days ago)
- Topics: convert, converter, document, libreoffice, soffice
- Language: JavaScript
- Homepage:
- Size: 71.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# loconvert
Convert office documents in Node.js using LibreOffice (soffice.exe).
LibreOffice must be installed.
This supports multliple documents conversion on Windows (see issue https://wiki.documentfoundation.org/Faq/General/150).
## Installation
```
npm install loconvert --save
```## Usage
```javascript
const convert = require("loconvert");// Convert a single document
convert({
input: "./test/src/test.docx",
format: "\"html:XHTML Writer File:UTF8\"",
outdir: "./test/out",
customPath: "optional/custom/path/to/libreoffice/directory"
})
.then(() => console.log("done"));// Convert multiple documents
convert({
input: ["./test/src/test.docx", "./test/src/test2.docx"],
format: "\"html:XHTML Writer File:UTF8\"",
outdir: "./test/out"
})
.then(() => console.log("done"));
```