Annotation
Overview
Annotation is a type in Aspose.PDF FOSS for Go.
Annotation is the common interface implemented by every concrete annotation type.
This type declares 11 methods for Annotation objects in Go programs.
Available methods include: AnnotationType, Color, Contents, Flatten, PageIndex, Rect, SetColor, SetContents, SetRect, SetTitle, Title.
Public members are accessible to any Go application after installing the Aspose.PDF FOSS for Go package.
Methods
| Signature | Description |
|---|---|
AnnotationType() → AnnotationType | Returns the annotation type. |
Rect() → Rectangle | Returns the rect. |
SetRect(r: Rectangle) | Sets the rect value. |
Color() → *Color | Returns the color. |
SetColor(c: *Color) | Sets the color value. |
Title() → string | Returns the title. |
SetTitle(s: string) | Sets the title value. |
Contents() → string | Returns the contents. |
SetContents(s: string) | Sets the contents value. |
PageIndex() → int | Returns the page index. |
Flatten() → error | Flatten bakes this annotation’s normal appearance into the page content and removes the annotation, making it non-interactive. |