Versions in this module Expand all Collapse all v1 v1.1.0 Jan 14, 2025 Changes in this version + const Version + var ReleasedAt = time.Date(releaseYear, releaseMonth, releaseDay, releaseHour, releaseMin, 0, 0, time.UTC) + func AddImageToZip(z *zip.Writer, img ImageRef, imageNum int, dt goffice.DocType) error + func UtcTimeFormat(t time.Time) string + type AppProperties struct + func NewAppProperties() AppProperties + func (a AppProperties) Application() string + func (a AppProperties) ApplicationVersion() string + func (a AppProperties) Company() string + func (a AppProperties) SetApplication(s string) + func (a AppProperties) SetApplicationVersion(s string) + func (a AppProperties) SetCompany(s string) + func (a AppProperties) SetDocSecurity(v int32) + func (a AppProperties) SetLinksUpToDate(v bool) + func (a AppProperties) X() *extended_properties.Properties + type ContentTypes struct + func NewContentTypes() ContentTypes + func (c ContentTypes) AddDefault(fileExtension string, contentType string) + func (c ContentTypes) AddOverride(path, contentType string) + func (c ContentTypes) CopyOverride(path, newPath string) + func (c ContentTypes) EnsureDefault(ext, contentType string) + func (c ContentTypes) EnsureOverride(path, contentType string) + func (c ContentTypes) RemoveOverride(path string) + func (c ContentTypes) RemoveOverrideByIndex(path string, indexToFind int) error + func (c ContentTypes) X() *content_types.Types + type CoreProperties struct + func NewCoreProperties() CoreProperties + func (c CoreProperties) Author() string + func (c CoreProperties) Category() string + func (c CoreProperties) ContentStatus() string + func (c CoreProperties) Created() time.Time + func (c CoreProperties) Description() string + func (c CoreProperties) LastModifiedBy() string + func (c CoreProperties) Modified() time.Time + func (c CoreProperties) SetAuthor(s string) + func (c CoreProperties) SetCategory(s string) + func (c CoreProperties) SetContentStatus(s string) + func (c CoreProperties) SetCreated(t time.Time) + func (c CoreProperties) SetDescription(s string) + func (c CoreProperties) SetLanguage(s string) + func (c CoreProperties) SetLastModifiedBy(s string) + func (c CoreProperties) SetModified(t time.Time) + func (c CoreProperties) SetTitle(s string) + func (c CoreProperties) Title() string + func (c CoreProperties) X() *core_properties.CoreProperties + type CustomProperties struct + func NewCustomProperties() CustomProperties + func (c CustomProperties) GetPropertyByName(name string) CustomProperty + func (c CustomProperties) PropertiesList() []*custom_properties.CT_Property + func (c CustomProperties) SetPropertyAsArray(name string, array *docPropsVTypes.Array) + func (c CustomProperties) SetPropertyAsBlob(name, blob string) + func (c CustomProperties) SetPropertyAsBool(name string, b bool) + func (c CustomProperties) SetPropertyAsBstr(name string, bstr string) + func (c CustomProperties) SetPropertyAsClsid(name string, clsid string) + func (c CustomProperties) SetPropertyAsCy(name string, cy string) + func (c CustomProperties) SetPropertyAsDate(name string, date time.Time) + func (c CustomProperties) SetPropertyAsDecimal(name string, decimal float64) + func (c CustomProperties) SetPropertyAsEmpty(name string) + func (c CustomProperties) SetPropertyAsError(name string, error string) + func (c CustomProperties) SetPropertyAsFiletime(name string, filetime time.Time) + func (c CustomProperties) SetPropertyAsI1(name string, i1 int8) + func (c CustomProperties) SetPropertyAsI2(name string, i2 int16) + func (c CustomProperties) SetPropertyAsI4(name string, i4 int32) + func (c CustomProperties) SetPropertyAsI8(name string, i8 int64) + func (c CustomProperties) SetPropertyAsInt(name string, i int) + func (c CustomProperties) SetPropertyAsLpstr(name string, lpstr string) + func (c CustomProperties) SetPropertyAsLpwstr(name string, lpwstr string) + func (c CustomProperties) SetPropertyAsNull(name string) + func (c CustomProperties) SetPropertyAsOblob(name, oblob string) + func (c CustomProperties) SetPropertyAsOstorage(name string, ostorage string) + func (c CustomProperties) SetPropertyAsOstream(name string, ostream string) + func (c CustomProperties) SetPropertyAsR4(name string, r4 float32) + func (c CustomProperties) SetPropertyAsR8(name string, r8 float64) + func (c CustomProperties) SetPropertyAsStorage(name string, storage string) + func (c CustomProperties) SetPropertyAsStream(name string, stream string) + func (c CustomProperties) SetPropertyAsUi1(name string, ui1 uint8) + func (c CustomProperties) SetPropertyAsUi2(name string, ui2 uint16) + func (c CustomProperties) SetPropertyAsUi4(name string, ui4 uint32) + func (c CustomProperties) SetPropertyAsUi8(name string, ui8 uint64) + func (c CustomProperties) SetPropertyAsUint(name string, ui uint) + func (c CustomProperties) SetPropertyAsVector(name string, vector *docPropsVTypes.Vector) + func (c CustomProperties) SetPropertyAsVstream(name string, vstream *docPropsVTypes.Vstream) + func (c CustomProperties) X() *custom_properties.Properties + type CustomProperty *custom_properties.CT_Property + type DocBase struct + AppProperties AppProperties + ContentTypes ContentTypes + CoreProperties CoreProperties + CustomProperties CustomProperties + ExtraFiles []ExtraFile + Images []ImageRef + Rels Relationships + Thumbnail image.Image + TmpPath string + func (d *DocBase) AddExtraFileFromZip(f *zip.File) error + func (d *DocBase) WriteExtraFiles(z *zip.Writer) error + type ExtraFile struct + DiskPath string + ZipPath string + type Hyperlink Relationship + type Image struct + Data *[]byte + Format string + Path string + Size image.Point + func ImageFromBytes(data []byte) (Image, error) + func ImageFromFile(path string) (Image, error) + type ImageRef struct + func MakeImageRef(img Image, d *DocBase, rels Relationships) ImageRef + func (i *ImageRef) SetRelID(id string) + func (i ImageRef) Data() *[]byte + func (i ImageRef) Format() string + func (i ImageRef) Path() string + func (i ImageRef) RelID() string + func (i ImageRef) RelativeHeight(w measurement.Distance) measurement.Distance + func (i ImageRef) RelativeWidth(h measurement.Distance) measurement.Distance + func (i ImageRef) Size() image.Point + type Relationship struct + func NewRelationship() Relationship + func (r Relationship) ID() string + func (r Relationship) SetTarget(s string) + func (r Relationship) String() string + func (r Relationship) Target() string + func (r Relationship) Type() string + func (r Relationship) X() *relationships.Relationship + type Relationships struct + func NewRelationships() Relationships + func NewRelationshipsCopy(rels Relationships) Relationships + func (r Relationships) AddAutoRelationship(dt goffice.DocType, src string, idx int, ctype string) Relationship + func (r Relationships) AddHyperlink(target string) Hyperlink + func (r Relationships) AddRelationship(target, ctype string) Relationship + func (r Relationships) Clear() + func (r Relationships) CopyRelationship(idAttr string) (Relationship, bool) + func (r Relationships) FindRIDForN(i int, t string) string + func (r Relationships) IsEmpty() bool + func (r Relationships) Relationships() []Relationship + func (r Relationships) Remove(rel Relationship) bool + func (r Relationships) X() *relationships.Relationships + type TableStyles struct + func NewTableStyles() TableStyles + func (t TableStyles) DefAttr() string + func (t TableStyles) TblStyle() []*dml.CT_TableStyle + func (t TableStyles) X() *dml.TblStyleLst + type Theme struct + func NewTheme() Theme + func (t Theme) X() *dml.Theme