Layer

Overview

Layer is a class in Aspose.Pdf FOSS for Java.

Represents an Optional Content Group (layer) in a PDF document (ISO 32000-1:2008, §8.11).

Properties

NameTypeAccessDescription
idStringReadReturns the layer ID.
nameStringReadReturns the layer name (/Name).
contentsList<Operator>ReadReturns content operators for this layer.
cOSDictionaryCOSDictionaryReadReturns the underlying OCG dictionary.

Methods

SignatureDescription
Layer(id: String, name: String)Creates a new layer.
Layer(ocgDict: COSDictionary)Wraps an existing OCG dictionary.
getId()StringReturns the layer ID.
getName()StringReturns the layer name (/Name).
setName(name: String)Sets the layer name.
getContents()List<Operator>Returns content operators for this layer.
getCOSDictionary()COSDictionaryReturns the underlying OCG dictionary.

See Also