Documentation
¶
Index ¶
- Variables
- type Unoconvert
- func (u *Unoconvert) Command(infile string, outfile string, opts ...UnoconvertOption) *exec.Cmd
- func (u *Unoconvert) CommandContext(ctx context.Context, infile string, outfile string, opts ...UnoconvertOption) *exec.Cmd
- func (u *Unoconvert) SetContextTimeout(timeout time.Duration)
- func (u *Unoconvert) SetExecutable(executable string)
- func (u *Unoconvert) SetHost(interf string)
- func (u *Unoconvert) SetPort(port string)
- type UnoconvertOption
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 ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.