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
| Name | Type | Access | Description |
|---|---|---|---|
id | String | Read | Returns the layer ID. |
name | String | Read | Returns the layer name (/Name). |
contents | List<Operator> | Read | Returns content operators for this layer. |
cOSDictionary | COSDictionary | Read | Returns the underlying OCG dictionary. |
Methods
| Signature | Description |
|---|---|
Layer(id: String, name: String) | Creates a new layer. |
Layer(ocgDict: COSDictionary) | Wraps an existing OCG dictionary. |
getId() → String | Returns the layer ID. |
getName() → String | Returns the layer name (/Name). |
setName(name: String) | Sets the layer name. |
getContents() → List<Operator> | Returns content operators for this layer. |
getCOSDictionary() → COSDictionary | Returns the underlying OCG dictionary. |