Skip to content

Reader for MS OLE Property Set format

License

Notifications You must be signed in to change notification settings

sajari/msoleps

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Build Status

About

Reader for MS OLE Property Set format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%