InkAnnotation
Overview
InkAnnotation is a type in Aspose.PDF FOSS for Go.
InkAnnotation draws a series of free-form strokes — typically used to represent handwritten ink.
This type provides 6 methods for working with InkAnnotation objects in Go programs.
Available methods include: AddStroke, AnnotationType, RegenerateAppearance, SetBorderWidth, SetStrokes, Strokes.
All 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. |
Strokes() → [][]Point | Strokes returns a deep copy of /InkList. |
SetStrokes(strokes: [][]Point) | SetStrokes writes /InkList. |
AddStroke(stroke: []Point) | AddStroke appends a single stroke to the annotation. |
SetBorderWidth(w: float64) | SetBorderWidth overrides drawingAnnotationBase.SetBorderWidth so /Rect (whose padding scales with BorderWidth) is recomputed before /AP/N regenerates — single-pass /BBox sync. |
RegenerateAppearance() | RegenerateAppearance forces /AP/N to be rebuilt from current properties. |