Documentation ¶
Index ¶
Constants ¶
View Source
const ( GIFTYPE = "image/gif" BMPTYPE = "image/x-ms-bmp" JPGTYPE = "image/jpeg" PNGTYPE = "image/png" )
GIFTYPE
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Docx ¶
type Docx struct { ZipBuffer *ZipBuffer MainPart string MainPartName string SettingsPart string SettingsPartName string ContentTypes string ContentTypesName string Headers map[int]string Relations map[string]string NewImages map[string]ImgValue }
Docx 文档
func (*Docx) GetArrangeImage ¶
GetArrangeImage return imgValue
func (*Docx) SetImagesValues ¶
SetImagesValues 设置图片
图片 header document foot 写的位置都是不一样的 所以只有在设置的时候能查到
type ImgValue ¶
type ImgValue struct {
Path, Type string
Width int
Height int
Search string
Replace string
Rid string
}
ImgValue 结构体
Click to show internal directories.
Click to hide internal directories.