https://github.com/xbmlz/uniconv
Using LibreOffice as a server for converting documents.
https://github.com/xbmlz/uniconv
converter document docx go golang libreoffice office openoffice pdf pptx xlsx
Last synced: 7 months ago
JSON representation
Using LibreOffice as a server for converting documents.
- Host: GitHub
- URL: https://github.com/xbmlz/uniconv
- Owner: xbmlz
- License: mit
- Created: 2024-02-01T07:10:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-01T07:25:54.000Z (over 1 year ago)
- Last Synced: 2025-01-16T23:33:03.679Z (9 months ago)
- Topics: converter, document, docx, go, golang, libreoffice, office, openoffice, pdf, pptx, xlsx
- Language: Go
- Homepage:
- Size: 16.6 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Uniconv
[](https://github.com/features/actions)
[](https://coveralls.io/github/xbmlz/uniconv?branch=main)
[](https://goreportcard.com/report/github.com/xbmlz/uniconv)
[](https://godoc.org/github.com/xbmlz/uniconv)
[](https://github.com/xbmlz/uniconv)
[](https://github.com/xbmlz/uniconv/releases)Using LibreOffice as a server for converting documents.
## Requirements
- Go 1.20 or later
- [Apache OpenOffice](https://www.openoffice.org/) or [LibreOffice](https://www.libreoffice.org/); the latest stable version is usually recommended.
## Installation
```bash
go get -u github.com/xbmlz/uniconv
```## Usage
```go
package mainimport (
"fmt"
"github.com/xbmlz/uniconv"
)func main() {
// create a new processor, the default port is 2002
p := uniconv.NewProcessor()
// Start an office process and connect to the started instance (on port 2002).
p.Start()
defer p.Stop()
// Convert
c := uniconv.NewConverter()
c.Convert("input.docx", "output.pdf")
}
```