---
Product: Aspose.PDF
Platform: go
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/go/inkannotation
---

# InkAnnotation

## Overview

`InkAnnotation` is a type in Aspose.PDF FOSS for Go.
Inherits from: `drawingAnnotationBase`.

InkAnnotation draws a series of free-form strokes — typically used to represent handwritten ink.

This type declares 6 methods for InkAnnotation objects in Go programs.
Available methods include: `AddStroke`, `AnnotationType`, `RegenerateAppearance`, `SetBorderWidth`, `SetStrokes`, `Strokes`.
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. |

## See Also

- [Aspose.PDF — Enterprise API Reference](https://reference.aspose.com/pdf/)