A reader for Microsoft's OLE Property Set Format.
Example usage:
file, _ := os.Open("test/test.doc")
defer file.Close()
doc, err := mscfb.NewReader(file)
if err != nil {
log.Fatal(err)
}
props := msoleps.New()
for entry, err := doc.Next(); err == nil; entry, err = doc.Next() {
if msoleps.IsMSOLEPS(entry.Initial) {
if oerr := props.Reset(doc); oerr != nil {
log.Fatal(oerr)
}
for _, prop := range props.Property {
fmt.Printf("Name: %s; Type: %s; Value: %v", prop.Name, prop.Type(), prop)
}
}
}
Install with go get github.com/richardlehane/msoleps
Status: currently works for simple property sets like SummaryInformation. Not all types implemented yet (e.g. Array). Property set bags not implemented yet