extract_msg.structures.ole_pres Module

Module contents

class extract_msg.structures.ole_pres.OLEPresentationStream(data: bytes)[source]

Bases: object

[MS-OLEDS] OLEPresentationStream.

toBytes() bytes[source]
property advf: int | ADVF

An implementation specific hint on how to render the presentation data on screen. May be ignored on processing.

property ansiClipboardFormat: ClipboardFormatOrAnsiString
property aspect: int | DVAspect

An implementation specific hint on how to render the presentation data on screen. May be ignored on processing.

property data: bytes

The presentation data. The form of this data depends on :property clipboardFormat: of :property ansiClipboardFormat:.

property height: int

The height, in pixels, of the presentation data.

property lindex: int

An implementation specific hint on how to render the presentation data on screen. May be ignored on processing.

property reserved1: bytes

4 bytes that can contain any arbitrary data. Must be exactly 4 bytes when setting.

property reserved2: bytes | None

Optional additional data that is only set if the clipboard format of :property ansiClipboardFormat: is CF_METAFILEPICT.

Getting this will automatically correct the value retrieved based on the clipboard format, but will not modify the underlying data.

Must be exactly 18 bytes when setting.

property targetDevice: DVTargetDevice | None
property tocEntries: List[TOCEntry]

A list of TOCEntry structures. If :property tocSignature: is not set to 0x494E414E, accessing this value will clear the list.

Returns:

A direct reference to the list, allowing for modification. This class WILL NOT change this reference over the lifetime of the object.

property tocSignature: int

If this field does not contain 0x494E414E, then :property tocEntries: MUST be empty. Modifications to the list will be lost when it is next retrieved, meaning changes while this property is not 0x494E414E WILL be lost.

Setting this to a value other than 0x494E414E will clear the list immediately.

property width: int

The width, in pixels, of the presentation data.