footer

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DocumentContentTypeParagraph = DocumentContentType("paragraph")
	DocumentContentTypeTable     = DocumentContentType("table")
)
View Source
const TableDefaultWidth = 8800

TableDefaultWidth 表格默认宽度

Variables

This section is empty.

Functions

This section is empty.

Types

type DocumentContent

type DocumentContent struct {
	// contains filtered or unexported fields
}

DocumentContent 文档内容

func (*DocumentContent) GetContentType

func (d *DocumentContent) GetContentType() DocumentContentType

func (*DocumentContent) GetParagraph

func (d *DocumentContent) GetParagraph() *paragraph.Paragraph

func (*DocumentContent) GetTable

func (d *DocumentContent) GetTable() *table.Table

type DocumentContentType

type DocumentContentType string
type Footer struct {
	// contains filtered or unexported fields
}

Footer 页脚定义

func (*Footer) AddPageNum

func (f *Footer) AddPageNum(align paragraph.HorizontalAlignmentType) *Footer

AddPageNum 添加页码 页码属于行元素,将独占一行,可以设置水平位置

func (*Footer) AddParagraph

func (f *Footer) AddParagraph() *paragraph.Paragraph

AddParagraph 添加一个段落

func (*Footer) AddTable

func (f *Footer) AddTable() *table.Table

AddTable 添加一个表格

func (*Footer) AddTableWithColumns

func (f *Footer) AddTableWithColumns(columns int) *table.Table

AddTableWithColumns 添加一个拥有指定列数量的表格

func (*Footer) AddTableWithColumnsAndAutoWidth

func (f *Footer) AddTableWithColumnsAndAutoWidth(columns int) *table.Table

AddTableWithColumnsAndAutoWidth 添加一个拥有指定列数量的表格,并且自动计算所有列的宽度

func (*Footer) GenerateFileName

func (f *Footer) GenerateFileName() string

GenerateFileName 生成文件名

func (*Footer) GetContents

func (f *Footer) GetContents() []*DocumentContent

func (*Footer) GetFileName

func (f *Footer) GetFileName() string

GetFileName 获取文件名称

func (*Footer) GetRId

func (f *Footer) GetRId() string

GetRId 获取该页脚的rId

func (*Footer) GetXmlBytes

func (f *Footer) GetXmlBytes() ([]byte, error)

func (*Footer) SetRId

func (f *Footer) SetRId(rId string) *Footer

SetRId 设置此页脚的rId

Jump to

Keyboard shortcuts

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