docx_template

package
v0.0.0-...-8122643 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocxTemplate

type DocxTemplate struct {
	DocxTemplateConfig
}

func New

func New() *DocxTemplate

func (*DocxTemplate) Config

func (d *DocxTemplate) Config() interface{}

func (*DocxTemplate) Init

func (d *DocxTemplate) Init(app app_context.Context, configPath ...string) error

func (*DocxTemplate) ToDocx

func (d *DocxTemplate) ToDocx(ctx op_context.Context, templateFile string, targetFile string, vars interface{}) error

func (*DocxTemplate) ToPdf

func (d *DocxTemplate) ToPdf(ctx op_context.Context, templateFile string, targetFile string, vars interface{}) error

type DocxTemplateConfig

type DocxTemplateConfig struct {
	LIBREOFFICE_EXECUTABLE string `default:"soffice" validate:"required" vmessage:"Libreoffice executable must be specified"`
	TEMP_DIR               string
}

Jump to

Keyboard shortcuts

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