# justo-plugin-soffice

> Tasks for Apache OpenOffice.

Latest version **0.1.0** (published 2016-02-20) · 0 weekly downloads

## Install

```sh
npm install justo-plugin-soffice
pnpm add justo-plugin-soffice
yarn add justo-plugin-soffice
bun add justo-plugin-soffice
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2016-02-20 |
| First published | 2016-02-20 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 5.0.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Justo Labs |
| Maintainers | justojs |
| Keywords | Justo, Justo.js, justo-plugin, OpenOffice, LibreOffice |

## Links

- npm: https://www.npmjs.com/package/justo-plugin-soffice
- Repository: https://github.com/justojsp/justo-plugin-soffice
- Homepage: http://www.justojs.org
- Issues: https://github.com/justojsp/justo-plugin-soffice/issues
- npm.io page: https://npm.io/package/justo-plugin-soffice

## Dependencies (1)

- [justo-fs](https://npm.io/package/justo-fs.md) *

## Recent versions

- 0.1.0 (latest) — 2016-02-20

## README

Tasks for *Apache OpenOffice*.

*Proudly made with ♥ in Valencia, Spain, EU.*

## Install

```
npm install justo-plugin-soffice
```

## Use

```
const soffice = require("justo-plugin-soffice");
```

## convert task

Convert `.odt` files to another format.

The task must be called as follows:

```
soffice(opts, config : object)
```

Configuration object:

- `path` (string). The directory where the `soffice` file is.
- `src` (string or string[]). Files to convert.
- `format` (string). The format to convert: `text` or `pdf`. Default: `pdf`.
- `dst` (string). Output directory. The files are generated with the same name but different extension.
- `files` (object[]). Files to convert:
  - `src` (string or string[]).
  - `format` (string).
  - `dst` (string).

Example:

```
const convert = require("justo-plugin-soffice").convert;

//ch01/lecture.odt -> dist/ch01/lecture.pdf
convert("Convert to PDF.", {
  path: "C:\\Program Files (x86)\\LibreOffice 5\\program",
  format: "pdf",
  src: "ch01/lecture.odt",
  dst: "dist/"
});

//ch01/*.odt -> dist/ch01/*.pdf
convert("Convert to PDF.", {
  path: "C:\\Program Files (x86)\\LibreOffice 5\\program",
  format: "pdf",
  src: "ch01/",
  dst: "dist/"
});
```

---
_Source: https://npm.io/package/justo-plugin-soffice · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
