LayerConfiguration
Overview
LayerConfiguration is a class in Aspose.PDF FOSS for Python.
A named optional content configuration a viewer can switch to.
This class declares 4 methods for LayerConfiguration objects in Python programs.
Available methods include: __init__, __repr__, locks, shows.
Public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package.
Properties: creator, index, is_default, name.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
name | str | Read | The configuration’s /Name, as a viewer lists it. |
creator | str | Read | The application that wrote this configuration, if it said. |
is_default | bool | Read | Whether this is /D, the configuration the document opens in. |
index | int | Read | Position in /Configs; -1 for the default configuration. |
Methods
| Signature | Description |
|---|---|
__init__(config: Any) | Calls init(config) on this LayerConfiguration instance. |
shows(layer: Layer) → bool | Whether this configuration has layer switched on. |
locks(layer: Layer) → bool | Whether this configuration forbids a viewer changing layer. |
__repr__() → str | Calls repr on this LayerConfiguration instance. |