unoconvert

package
v0.0.0-...-630cf7f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// The file type/extension of the output file (ex pdf). Required when using stdout
	ConvertTo = "--convert-to"
	// The export filter to use when converting. It is selected automatically if not specified.
	Filter = "--filter"
	// Options for the export filter, in name=value format. Use true/false for boolean values.
	FilterOptions = "--filter-options"
	// Update the indexes before conversion. Can be time consuming.
	UpdateIndex = "--update-index"
	// Skip updating the indexes.
	DontUpdateIndex = "--dont-update-index"
)
View Source
var (
	ContextTimeout = DefaultContextTimeout
)
View Source
var (
	DefaultContextTimeout = 0 * time.Minute
)

Functions

This section is empty.

Types

type Unoconvert

type Unoconvert struct {
	Host       string
	Port       string
	Executable string
}

func Default

func Default() *Unoconvert

func New

func New() *Unoconvert

func (*Unoconvert) Command

func (u *Unoconvert) Command(infile string, outfile string, opts ...UnoconvertOption) *exec.Cmd

func (*Unoconvert) CommandContext

func (u *Unoconvert) CommandContext(ctx context.Context, infile string, outfile string, opts ...UnoconvertOption) *exec.Cmd

func (*Unoconvert) SetContextTimeout

func (u *Unoconvert) SetContextTimeout(timeout time.Duration)

func (*Unoconvert) SetExecutable

func (u *Unoconvert) SetExecutable(executable string)

func (*Unoconvert) SetHost

func (u *Unoconvert) SetHost(interf string)

func (*Unoconvert) SetPort

func (u *Unoconvert) SetPort(port string)

type UnoconvertOption

type UnoconvertOption struct {
	Key   string
	Value string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL