Layer
Overview
Layer is a type in Aspose.PDF FOSS for Go.
Layer is one Optional Content Group (OCG) in the document.
This type provides 4 methods for working with Layer objects in Go programs.
Available methods include: IsVisible, Name, SetName, SetVisible.
All public members are accessible to any Go application after installing the Aspose.PDF FOSS for Go package.
Methods
| Signature | Description |
|---|---|
Name() → string | Name returns the layer’s display name (its /Name). |
SetName(name: string) | SetName sets the layer’s display name. |
IsVisible() → bool | IsVisible reports whether the layer is shown by default (not listed in the default configuration’s /OFF set). |
SetVisible(visible: bool) | SetVisible sets the layer’s default visibility (its membership in the default configuration’s /OFF set). |