LayerConfiguration

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

NameTypeAccessDescription
namestrReadThe configuration’s /Name, as a viewer lists it.
creatorstrReadThe application that wrote this configuration, if it said.
is_defaultboolReadWhether this is /D, the configuration the document opens in.
indexintReadPosition in /Configs; -1 for the default configuration.

Methods

SignatureDescription
__init__(config: Any)Calls init(config) on this LayerConfiguration instance.
shows(layer: Layer) → boolWhether this configuration has layer switched on.
locks(layer: Layer) → boolWhether this configuration forbids a viewer changing layer.
__repr__() → strCalls repr on this LayerConfiguration instance.

See Also