go_simple_docx

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Docx

type Docx struct {
	Document document.Document // word/document.xml 文档内容
	// contains filtered or unexported fields
}

func NewDocx

func NewDocx() *Docx

NewDocx 生成一个新的空 A4 docx 文件,我们可以对其进行操作和保存

func (*Docx) AddParagraph

func (d *Docx) AddParagraph() *paragraph.Paragraph

AddParagraph 添加段落

func (*Docx) NewCustomStyle

func (d *Docx) NewCustomStyle(styleName string, styleType string) *style.CustomStyle

NewCustomStyle 自定义样式

styleName 样式名称
styleType 样式类型,可选:character|paragraph|tab|...

func (*Docx) Save

func (d *Docx) Save(savePath string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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