doc2txt

package module
v0.0.0-...-4f62ca5 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2017 License: MIT Imports: 6 Imported by: 0

README

doc2txt

Build Status Coverage Status

A native Go reader for the old Microsoft Word .doc binary format files

Example usage:

f, _ := os.Open(`testData\simpleDoc.doc`)
buf, err := ParseDoc(f)
if err != nil {
  // handle error
}
// buf now contains an io.Reader which you can save to the file system or further transform

Special Thanks

A great big thank you to Richard Lehane. His (https://github.com/richardlehane/mscfb got me started, his https://github.com/richardlehane/doctool project got me closer and his answer to questions via email helped get me to the finish line. Thanks Richard!

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseDoc

func ParseDoc(r io.Reader) (io.Reader, error)

ParseDoc converts a standard io.Reader from a Microsoft Word .doc binary file and returns a reader (actually a bytes.Buffer) which will output the plain text found in the .doc file

Types

This section is empty.

Jump to

Keyboard shortcuts

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