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).

This class provides 7 methods for working with Layer objects in Java programs. Available methods include: Layer, getContents, getId, getName, getPdfDictionary, setName. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: contents, id, name, pdfDictionary.

Properties

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

Methods

SignatureDescription
Layer(id: String, name: String)Creates a new layer.
Layer(ocgDict: PdfDictionary)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.
getPdfDictionary()PdfDictionaryReturns the underlying OCG dictionary.

See Also

 English