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

SignatureDescription
Name()stringName returns the layer’s display name (its /Name).
SetName(name: string)SetName sets the layer’s display name.
IsVisible()boolIsVisible 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).

See Also

 English