Documentation
¶
Index ¶
- Constants
- type AExt
- type AvLst
- type Blip
- type BlipFill
- type Body
- type Bold
- type Break
- type CNvPicPr
- type CNvPr
- type Color
- type DocPr
- type DocRelation
- type Document
- type Drawing
- type Extent
- type File
- type FillRect
- type Graphic
- type GraphicData
- type Hyperlink
- type Inline
- type Italic
- type Justification
- type NvPicPr
- type Off
- type Paragraph
- func (p *Paragraph) AddAnyImageAuto(data []byte, ext string, maxWidthPx int) *Drawing
- func (p *Paragraph) AddBreak()
- func (p *Paragraph) AddImage(data []byte, ext string, widthPx, heightPx int) *Drawing
- func (p *Paragraph) AddImageAuto(data []byte, ext string, maxWidthPx int) *Drawing
- func (p *Paragraph) AddImageWithCaption(data []byte, ext string, widthPx, heightPx int, caption string)
- func (p *Paragraph) AddLabelValue(label, value string)
- func (p *Paragraph) AddLink(text string, link string) *Hyperlink
- func (p *Paragraph) AddMultilineText(text string)
- func (p *Paragraph) AddPageBreak()
- func (p *Paragraph) AddText(text string) *Run
- func (p *Paragraph) AlignCenter() *Paragraph
- func (p *Paragraph) AlignLeft() *Paragraph
- func (p *Paragraph) AlignRight() *Paragraph
- func (p *Paragraph) Justify() *Paragraph
- type ParagraphProperties
- type PgMar
- type PgSz
- type Pic
- type PrstGeom
- type RelationShip
- type Run
- type RunFonts
- type RunProperties
- type RunStyle
- type SectPr
- type Size
- type SpPr
- type Stretch
- type Text
- type Underline
- type Xfrm
Constants ¶
View Source
const ( XMLNS_W = `http://schemas.openxmlformats.org/wordprocessingml/2006/main` XMLNS_R = `http://schemas.openxmlformats.org/officeDocument/2006/relationships` )
View Source
const ( NS_A = "http://schemas.openxmlformats.org/drawingml/2006/main" NS_WP = "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" NS_PIC = "http://schemas.openxmlformats.org/drawingml/2006/picture" )
View Source
const ( XMLNS = `http://schemas.openxmlformats.org/package/2006/relationships` REL_HYPERLINK = `http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink` REL_IMAGE = `http://schemas.openxmlformats.org/officeDocument/2006/relationships/image` REL_TARGETMODE = "External" )
View Source
const ( TEMP_REL = `` /* 601-byte string literal not displayed */ TEMP_DOCPROPS_APP = `` /* 276-byte string literal not displayed */ TEMP_DOCPROPS_CORE = `` /* 363-byte string literal not displayed */ TEMP_CONTENT = `` /* 1117-byte string literal not displayed */ TEMP_WORD_STYLE = `` /* 1743-byte string literal not displayed */ TEMP_WORD_THEME_THEME = `` /* 9767-byte string literal not displayed */ TEMP_WORD_STYLE_TNR = `` /* 1792-byte string literal not displayed */ )
View Source
const (
HYPERLINK_STYLE = "a1"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DocRelation ¶
type DocRelation struct {
XMLName xml.Name `xml:"Relationships"`
Xmlns string `xml:"xmlns,attr"`
Relationship []*RelationShip `xml:"Relationship"`
}
type File ¶
type File struct {
Document Document
DocRelation DocRelation
// contains filtered or unexported fields
}
func (*File) AddParagraph ¶
func (*File) SetMarginsMM ¶
func (*File) SetPageSizeA4 ¶
func (f *File) SetPageSizeA4()
func (*File) UseTimesNewRomanDefault ¶
func (f *File) UseTimesNewRomanDefault()
type Graphic ¶
type Graphic struct {
XMLName xml.Name `xml:"a:graphic"`
GraphicData *GraphicData `xml:"a:graphicData"`
}
type GraphicData ¶
type Justification ¶
type Paragraph ¶
type Paragraph struct {
XMLName xml.Name `xml:"w:p"`
PPr *ParagraphProperties `xml:"w:pPr,omitempty"`
Data []interface{}
// contains filtered or unexported fields
}
func (*Paragraph) AddAnyImageAuto ¶ added in v1.1.0
func (*Paragraph) AddImageAuto ¶
func (*Paragraph) AddImageWithCaption ¶
func (*Paragraph) AddLabelValue ¶
func (*Paragraph) AddMultilineText ¶
func (*Paragraph) AddPageBreak ¶
func (p *Paragraph) AddPageBreak()
func (*Paragraph) AlignCenter ¶
func (*Paragraph) AlignRight ¶
type ParagraphProperties ¶
type ParagraphProperties struct {
XMLName xml.Name `xml:"w:pPr"`
Justification *Justification `xml:"w:jc,omitempty"`
}
type RelationShip ¶
type Run ¶
type RunProperties ¶
type RunProperties struct {
XMLName xml.Name `xml:"w:rPr"`
Color *Color `xml:"w:color,omitempty"`
Size *Size `xml:"w:sz,omitempty"`
RunStyle *RunStyle `xml:"w:rStyle,omitempty"`
RFonts *RunFonts `xml:"w:rFonts,omitempty"`
Bold *Bold `xml:"w:b,omitempty"`
Italic *Italic `xml:"w:i,omitempty"`
Underline *Underline `xml:"w:u,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.