ooodev.format.inner.direct.write.page.page.paper_format module
Module for Fill Transparency.
New in version 0.9.0.
- class ooodev.format.inner.direct.write.page.page.paper_format.PaperFormat(size=<ooodev.utils.data_type.size_mm.SizeMM object>)[source]
Bases:
StyleBase
Fill Transparency
New in version 0.9.0.
- __init__(size=<ooodev.utils.data_type.size_mm.SizeMM object>)[source]
Constructor
- Parameters:
size (SizeMM, optional) – Width and height in
mm
units. Defaults to Letter size in Portrait mode.- Return type:
None
- classmethod from_obj(obj)[source]
- classmethod from_obj(obj, **kwargs)
- classmethod from_obj(obj, **kwargs)
Gets instance from object
- Parameters:
obj (object) – UNO object.
- Returns:
Instance that represents object margins.
- Return type:
- classmethod from_preset(preset, landscape=False)[source]
- classmethod from_preset(preset, landscape=False, **kwargs)
- classmethod from_preset(preset, landscape=False, **kwargs)
Gets instance from preset
- Parameters:
preset (PaperFormatKind) – Preset kind
landscape (bool, optional) – Specifies if the preset is in landscape mode. Defaults to
False
.
- Returns:
Format from preset
- Return type:
- property prop_format_kind: FormatKind
Gets the kind of style
- Return type:
- property prop_landscape: bool
Gets Landscape value
- Return type:
bool