doc

package
v0.0.0-...-28b18ec Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2017 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrMissingDocument happens when xmlFileName is missing from zip
	ErrMissingDocument = fmt.Errorf("Unable to find %s in docx", xmlFileName)
)

Functions

This section is empty.

Types

type Docx

type Docx struct {
	Image []byte
	// contains filtered or unexported fields
}

Docx parses docx-formated readers this is go routine safe

func NewDocx

func NewDocx(reader io.ReaderAt, size int64) (doc *Docx, err error)

NewDocx creates a new Docx instance with data from the given reader

func (*Docx) Text

func (d *Docx) Text() (lines []string, err error)

Text returns each line of (unformatted) text from the docx xml

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL