---
title: "PdfShapeAnnotation"
canonical_url: "https://www.nutrient.io/api/python/editors/pdf/annotations/pdf-shape-annotation/"
md_url: "https://www.nutrient.io/api/python/editors/pdf/annotations/pdf-shape-annotation.md"
last_updated: "2026-06-09T10:32:42.528Z"
description: "Base class for shape annotations (Line, Circle, Square)."
---

Base class for shape annotations (Line, Circle, Square).

```python

from nutrient_sdk import PdfShapeAnnotation

```

**Inherits from:** [`PdfMarkupAnnotation`](/api/python/editors/pdf/annotations/pdf-markup-annotation/)

## Construction

`PdfShapeAnnotation` cannot be instantiated directly. Obtain instances through static factory methods or via other SDK classes.

## Properties

### interior_color

```python

@property
def interior_color(self) -> Color

@interior_color.setter
def interior_color(self, value: Color) -> None

```

The interior (fill) color of the shape annotation.

**Type:** [`Color`](/api/python/types/color/)

---

## Inherited members

From [`PdfAnnotation`](../pdf-annotation/): `blend_mode`, `border_effect`, `border_effect_intensity`, `border_style`, `border_width`, `color`, `contents`, `index`, `is_hidden`, `is_printable`, `modification_date`, `name`, `rect`, `sub_type`, `title`

From [`PdfMarkupAnnotation`](../pdf-markup-annotation/): `creation_date`, `opacity`, `rich_text_contents`, `subject`

## Inheritors

- [`PdfCircleAnnotation`](/api/python/editors/pdf/annotations/pdf-circle-annotation/)

- [`PdfLineAnnotation`](/api/python/editors/pdf/annotations/pdf-line-annotation/)

- [`PdfSquareAnnotation`](/api/python/editors/pdf/annotations/pdf-square-annotation/)

---

## Related pages

- [All public classes import directly from the top-level package:](/api/python/editors/pdf/annotations.md)
- [Pdf Annotation](/api/python/editors/pdf/annotations/pdf-annotation.md)
- [Pdf Circle Annotation](/api/python/editors/pdf/annotations/pdf-circle-annotation.md)
- [Pdf Annotation Collection](/api/python/editors/pdf/annotations/pdf-annotation-collection.md)
- [Pdf Highlight Annotation](/api/python/editors/pdf/annotations/pdf-highlight-annotation.md)
- [Pdf Line Annotation](/api/python/editors/pdf/annotations/pdf-line-annotation.md)
- [Pdf Markup Annotation](/api/python/editors/pdf/annotations/pdf-markup-annotation.md)
- [Pdf Link Annotation](/api/python/editors/pdf/annotations/pdf-link-annotation.md)
- [Pdf Redact Annotation](/api/python/editors/pdf/annotations/pdf-redact-annotation.md)
- [Pdf Free Text Annotation](/api/python/editors/pdf/annotations/pdf-free-text-annotation.md)
- [Pdf Square Annotation](/api/python/editors/pdf/annotations/pdf-square-annotation.md)
- [Pdf Squiggly Annotation](/api/python/editors/pdf/annotations/pdf-squiggly-annotation.md)
- [Pdf Stamp Annotation](/api/python/editors/pdf/annotations/pdf-stamp-annotation.md)
- [Pdf Strike Out Annotation](/api/python/editors/pdf/annotations/pdf-strike-out-annotation.md)
- [Pdf Underline Annotation](/api/python/editors/pdf/annotations/pdf-underline-annotation.md)
- [Pdf Text Annotation](/api/python/editors/pdf/annotations/pdf-text-annotation.md)
- [Pdf Widget Annotation](/api/python/editors/pdf/annotations/pdf-widget-annotation.md)

