Header

Overview

Header exposes the parsed content of the fixed 512-byte CFB header record. It is available as CFBReader.header after a file is opened and provides computed sector-size properties alongside the raw version and DIFAT chain fields defined by the CFB specification.

Key fields: major_version: int, minor_version: int, number_of_fat_sectors: int, first_directory_sector_location: int, mini_stream_cutoff_size: int, number_of_difat_sectors: int, difat: list.

from aspose.email_foss.cfb import CFBReader

with CFBReader.from_file("archive.cfb") as reader:
    h = reader.header
    print(f"sector_size={h.sector_size}")
    print(f"mini_sector_size={h.mini_sector_size}")
    print(f"fat_sectors={h.number_of_fat_sectors}")

Properties

NameTypeDescription
sector_sizeintFAT sector size in bytes, computed from the sector_shift field in the raw header.
mini_sector_sizeintMini-stream sector size in bytes, computed from the mini_sector_shift field in the raw header.

See Also