docxtxt

package
v0.0.0-...-688d651 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: Unlicense Imports: 5 Imported by: 0

Documentation

Overview

Package docxtxt extracts text from .docx documents

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToStr

func BytesToStr(data []byte) (string, error)

BytesToStr converts a []byte representation of .docx document file to string

func ToStr

func ToStr(filename string) (string, error)

ToStr converts a .docx document file to string

Types

type Docx

type Docx struct {
	Files        []*zip.File
	FilesContent map[string][]byte
	WordsList    []*Words
	// contains filtered or unexported fields
}

Docx zip struct

func OpenDocx

func OpenDocx(path string) (*Docx, error)

OpenDocx open and load all files content

func OpenDocxReader

func OpenDocxReader(bytesReader *bytes.Reader) (*Docx, error)

OpenDocx open and load all files content

func (*Docx) CloseZip

func (d *Docx) CloseZip() error

Close is close reader

func (*Docx) GenWordsList

func (d *Docx) GenWordsList()

GenWordsList

type Words

type Words struct {
	Content []string
}

Jump to

Keyboard shortcuts

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