def getStreamFromBytes(self, name, bytes): if name == "WordDocument": return WordDocumentStream(bytes, self.params, doc=self) if name in ("0Table", "1Table"): return TableStream(bytes, self.params, name, doc=self) else: return DOCDirStream(bytes, self.params, name, doc=self)
def __init__(self, parent): DOCDirStream.__init__(self, parent.bytes) self.parent = parent self.pos = parent.pos
def __init__(self, bytes): DOCDirStream.__init__(self, bytes)
def __init__(self, parent, PropertyIds): DOCDirStream.__init__(self, parent.bytes) self.parent = parent self.propertyIds = PropertyIds
def __init__(self, bytes, params, doc): DOCDirStream.__init__(self, bytes, params, "\x05SummaryInformation", doc=doc)
def __init__(self, parent, name): DOCDirStream.__init__(self, parent.bytes) self.pos = parent.pos self.parent = parent self.name = name
def __init__(self, parent, index): DOCDirStream.__init__(self, parent.bytes) self.parent = parent self.index = index self.pos = parent.posOrig + parent.idsAndOffsets[index].Offset
def __init__(self, parent, index): DOCDirStream.__init__(self, parent.bytes) self.parent = parent self.index = index self.pos = parent.pos
def __init__(self, bytes, params, doc): DOCDirStream.__init__(self, bytes, params, "WordDocument", doc=doc)
def __init__(self, bytes, params, name, doc): DOCDirStream.__init__(self, bytes, params, name, doc=doc)