Skip to content
/ uniconv Public

Using LibreOffice as a server for converting documents.

License

Notifications You must be signed in to change notification settings

xbmlz/uniconv

Repository files navigation

Uniconv

Build Status Coverage Status Go Report Card Go Doc Code Size Release

Using LibreOffice as a server for converting documents.

Requirements

Installation

go get -u github.com/xbmlz/uniconv

Usage

package main

import (
    "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")
}

Releases

No releases published

Packages

No packages published

Languages