doc2txt

package module
v0.0.0-...-5d2d404 Latest Latest
Warning

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

Go to latest
Published: May 22, 2021 License: MIT Imports: 6 Imported by: 3 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址