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

# RedactAnnotation

## Overview

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

RedactAnnotation marks regions for redaction.

This type declares 12 methods for RedactAnnotation objects in Go programs.
Available methods include: `AnnotationType`, `InteriorColor`, `OverlayText`, `OverlayTextStyle`, `QuadPoints`, `RegenerateAppearance`, `RepeatOverlayText`, `SetInteriorColor`, `SetOverlayText`, `SetOverlayTextStyle`, `SetQuadPoints`, `SetRepeatOverlayText`.
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. |
| `QuadPoints()` → `[]QuadPoint` | QuadPoints returns the regions to redact in page space. |
| `SetQuadPoints(qp: []QuadPoint)` | SetQuadPoints writes /QuadPoints. |
| `RegenerateAppearance()` | RegenerateAppearance forces /AP/N to be rebuilt. |
| `InteriorColor()` → `*Color` | InteriorColor returns the /IC fill color (used for both mark visual and post-apply overlay). |
| `SetInteriorColor(c: *Color)` | SetInteriorColor writes /IC. |
| `OverlayText()` → `string` | OverlayText returns /OverlayText. |
| `SetOverlayText(s: string)` | SetOverlayText writes /OverlayText. |
| `RepeatOverlayText()` → `bool` | RepeatOverlayText returns /Repeat. |
| `SetRepeatOverlayText(repeat: bool)` | SetRepeatOverlayText writes /Repeat. |
| `OverlayTextStyle()` → `TextStyle` | OverlayTextStyle returns the style reconstructed from /DA + /Q. |
| `SetOverlayTextStyle(s: TextStyle)` | SetOverlayTextStyle writes /DA + /Q. |

## See Also

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