Documentation ¶
Index ¶
- Constants
- type DocumentContent
- type DocumentContentType
- type Footer
- func (f *Footer) AddPageNum(align paragraph.HorizontalAlignmentType) *Footer
- func (f *Footer) AddParagraph() *paragraph.Paragraph
- func (f *Footer) AddTable() *table.Table
- func (f *Footer) AddTableWithColumns(columns int) *table.Table
- func (f *Footer) AddTableWithColumnsAndAutoWidth(columns int) *table.Table
- func (f *Footer) GenerateFileName() string
- func (f *Footer) GetContents() []*DocumentContent
- func (f *Footer) GetFileName() string
- func (f *Footer) GetRId() string
- func (f *Footer) GetXmlBytes() ([]byte, error)
- func (f *Footer) SetRId(rId string) *Footer
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 ¶
type Footer struct {
// contains filtered or unexported fields
}
Footer 页脚定义
func (*Footer) AddPageNum ¶
func (f *Footer) AddPageNum(align paragraph.HorizontalAlignmentType) *Footer
AddPageNum 添加页码 页码属于行元素,将独占一行,可以设置水平位置
func (*Footer) AddParagraph ¶
AddParagraph 添加一个段落
func (*Footer) AddTableWithColumns ¶
AddTableWithColumns 添加一个拥有指定列数量的表格
func (*Footer) AddTableWithColumnsAndAutoWidth ¶
AddTableWithColumnsAndAutoWidth 添加一个拥有指定列数量的表格,并且自动计算所有列的宽度
func (*Footer) GetContents ¶
func (f *Footer) GetContents() []*DocumentContent
func (*Footer) GetXmlBytes ¶
Click to show internal directories.
Click to hide internal directories.