LayerConfig

Overview

LayerConfig is a class in Aspose.PDF FOSS for TypeScript.

A viewing configuration (/D or a /Configs entry).

This class declares 5 methods for LayerConfig objects in TypeScript programs. Available methods include: IsVisible, ResolveVisibility, SetLocked, SetVisible, constructor. All public members are accessible to any TypeScript application after installing the Aspose.PDF FOSS for TypeScript package. Properties: BaseState, Creator, Locked, Name.

Properties

NameTypeAccessDescription
BaseState'ON' | 'OFF'Read/WriteGets the base state.
Namestring | undefinedRead/WriteGets the name.
Creatorstring | undefinedReadGets the creator.
LockedLayer[]ReadGets the locked.

Methods

SignatureDescription
constructor(doc: Document, Dict: PdfDict, oc: OptionalContent)Calls constructor(doc, Dict, oc) on this LayerConfig instance.
IsVisible(layer: Layer)booleanCalls IsVisible(layer) on this LayerConfig instance.
ResolveVisibility(oc: PdfObject | undefined)booleanResolve the visibility of any /OC value under this config: an OCG (its ON/OFF/BaseState state), or an OCMD (via /VE when present, else its /P policy over /OCGs).
SetVisible(layer: Layer, v: boolean)Calls SetVisible(layer, v) on this LayerConfig instance.
SetLocked(layer: Layer, v: boolean)Calls SetLocked(layer, v) on this LayerConfig instance.