Overview
CFBDocument is the in-memory, mutable representation of a Compound File Binary (CFB) document. It holds a root storage node of type CFBStorage along with version metadata and is the central object for constructing or modifying CFB structures. Once modifications are complete, the document is serialized using CFBWriter.
Properties
| Property | Type | Description |
|---|
root | CFBStorage | Root storage node of the CFB directory tree. |
major_version | int | CFB major version from the file header (3 for 512-byte sectors, 4 for 4096-byte sectors). |
minor_version | int | CFB minor version; typically 0x003E. |
transaction_signature_number | int | Transaction signature number from the CFB header; incremented on each write. |
Class Methods
| Method | Returns | Description |
|---|
from_reader(reader) | CFBDocument | Builds a CFBDocument from an open CFBReader instance. |
from_file(path) | CFBDocument | Opens a CFB file at path and returns a populated CFBDocument. |
See Also