Skip to content

Read streams from an OLE Compound Document, e.g. StructuredStorage.

License

Notifications You must be signed in to change notification settings

xyzbety/node-ole-doc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ole-doc

Read streams from an OLE Compound Document, e.g. StructuredStorage.

Example Usage

Normal

OleDoc = require('../lib/ole-doc').OleCompoundDoc;
var doc = new OleDoc( 'filename.ext' );
doc.on('err', function(err) {
  // do something with err
});
doc.on('ready', function() {
  var stream = doc.storage('StorageName').stream('StreamName');
  // do something with stream
});
doc.read();

With Custom Header

var headerSize = 24;
doc.read(headerSize, function(buffer) {
  // do something with buffer
  // return false to stop reading (if you don't like the header for some reason)
  // return true to continue reading like normal
});

About

Read streams from an OLE Compound Document, e.g. StructuredStorage.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%