Versions in this module Expand all Collapse all v0 v0.2.2 Nov 22, 2026 v0.2.1 Nov 18, 2026 v0.2.0 Nov 17, 2026 v0.1.9 Nov 14, 2026 v0.1.8 Oct 31, 2026 v0.1.7 Oct 30, 2026 v0.1.6 Oct 27, 2026 Changes in this version + const MaxImagesPerPage + func EMU(mm float64) int + func HalfPoints(pt float64) int + func RowListMarker(row []textdoc.Entry) (string, bool) + func StripListMarker(text string) string + func Twips(mm float64) int + func TwipsFromPoints(pt float64) int + func Write(output io.Writer, options Options, build func(*Writer) error) error + type AbstractNumbering struct + AbstractID int + Levels []*Level + type AdjustValueList struct + type Blip struct + Embed string + type Block struct + Image *textdoc.Image + Kind BlockKind + func BlockSequence(entries []textdoc.Entry, pageHeight float64, options PageOptions, ...) []Block + func (b Block) Paragraph() *Paragraph + func (b Block) Table() *Table + type BlockAnchor float64 + type BlockKind int + const BlockHeading + const BlockImage + const BlockParagraph + const BlockTable + type Border struct + Color string + Size int + Val string + type Columns struct + Num int + Space int + type DocDefaults struct + Runs *RunProperties + type DocProperties struct + ID int + Name string + type Drawing struct + Inline *Inline + func NewInlineImage(relationID string, widthMM, heightMM float64, id int, name string) *Drawing + type EffectExtent struct + Bottom int + Left int + Right int + Top int + type Extent struct + Height int + Width int + type FillRect struct + type Graphic struct + Data *GraphicData + type GraphicData struct + Picture *Picture + URI string + type GraphicFrameLocks struct + NoChangeAspect string + type GraphicFramePr struct + Locks *GraphicFrameLocks + type GridColumn struct + Width int + type Indent struct + FirstLine *int + Hanging *int + Left *int + Right *int + type Inline struct + DistanceBottom int + DistanceLeft int + DistanceRight int + DistanceTop int + DocProperties *DocProperties + EffectExtent *EffectExtent + Extent *Extent + FramePr *GraphicFramePr + Graphic *Graphic + type Level struct + Format *Val + Index int + Justify *Val + Properties *ParagraphProperties + Runs *RunProperties + Start *Val + Text *Val + type ListItem struct + func DetectListItem(text string) (ListItem, bool) + func FilterCredibleListItems(items []ListItem) []ListItem + type Measure struct + Type string + Value int + func NewMeasure(twips int) *Measure + type NonVisualProperties struct + ID int + Name string + type NumberInstance struct + AbstractID int + NumID int + type NumberingProps struct + Level *Val + NumID *Val + type NumberingRoot struct + Abstract []*AbstractNumbering + Namespace string + Numbers []*NumberInstance + XMLName xml.Name + type Offset struct + X int + Y int + type Options struct + Author string + Columns int + Landscape bool + MarginBottom int + MarginLeft int + MarginRight int + MarginTop int + PageHeight int + PageWidth int + Title string + type PageMargin struct + Bottom int + Footer int + Gutter int + Header int + Left int + Right int + Top int + type PageOptions struct + Annotations bool + Tables bool + type PageSize struct + Height int + Orient string + Width int + type Paragraph struct + Properties *ParagraphProperties + Runs []Run + type ParagraphProperties struct + Indent *Indent + Justification *Val + Numbering *NumberingProps + OutlineLevel *Val + Spacing *Spacing + Style *Val + type Picture struct + Fill *PictureBlipFill + NonVisual *PictureNonVisual + Properties *ShapeProperties + type PictureBlipFill struct + Blip *Blip + Stretch *Stretch + type PictureNonVisual struct + PictureProps *PictureProperties + Properties *NonVisualProperties + type PictureProperties struct + type PresetShape struct + List *AdjustValueList + Preset string + type Run struct + Drawing *Drawing + Properties *RunProperties + Text *Text + type RunFonts struct + ASCII string + EastAsia string + type RunProperties struct + Bold *Val + Color *Val + Fonts *RunFonts + Italic *Val + Size *Val + type SectionProperties struct + Columns *Columns + PageMargin *PageMargin + PageSize *PageSize + type ShapeProperties struct + Geometry *PresetShape + Transform *Transform + type Spacing struct + After *int + Before *int + Line *int + LineRule string + type Stretch struct + Rect *FillRect + type Style struct + BasedOn *Val + Custom bool + Default bool + Name *Val + Next *Val + Properties *ParagraphProperties + Runs *RunProperties + StyleID string + Type string + type Styles struct + Defaults *DocDefaults + List []Style + Namespace string + XMLName xml.Name + type Table struct + Grid *TableGrid + Properties *TableProperties + Rows []TableRow + type TableBorders struct + Bottom *Border + InsideH *Border + InsideV *Border + Left *Border + Right *Border + Top *Border + type TableCell struct + Paragraphs []Paragraph + Properties *TableCellProperties + type TableCellProperties struct + ColumnSpan *Val + RowSpan *VerticalMerge + Vertical *Val + Width *Measure + type TableGrid struct + Columns []GridColumn + func NewTableGrid(widths []int) *TableGrid + type TableProperties struct + Borders *TableBorders + Layout *TypeVal + Look *Val + Style string + Width *Measure + type TableRow struct + Cells []TableCell + Properties *TableRowProperties + type TableRowProperties struct + TableHeader *Val + type Text struct + Space string + Value string + func NewText(value string) *Text + type Transform struct + Extent *Extent + Offset *Offset + type TypeVal struct + Value string + type Val struct + Value string + func BoolVal(value bool) *Val + func IntVal(value int) *Val + func StringVal(value string) *Val + type VerticalMerge struct + Restart *Val + type Writer struct + func (w *Writer) AddImage(data []byte, extension string, widthMM, heightMM float64) error + func (w *Writer) AddPageBreak() error + func (w *Writer) AddParagraph(p *Paragraph) error + func (w *Writer) AddTable(t *Table) error