---
title: "PdfLineAnnotation"
canonical_url: "https://www.nutrient.io/api/python/editors/pdf/annotations/pdf-line-annotation/"
md_url: "https://www.nutrient.io/api/python/editors/pdf/annotations/pdf-line-annotation.md"
last_updated: "2026-06-09T10:23:03.737Z"
description: "Represents a line annotation."
---

Represents a line annotation.

```python

from nutrient_sdk import PdfLineAnnotation

```

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

## Construction

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

## Properties

### end_cap

```python

@property
def end_cap(self) -> PdfLineEndingStyle

@end_cap.setter
def end_cap(self, value: PdfLineEndingStyle) -> None

```

The line ending style at the end of the line.

**Type:** [`PdfLineEndingStyle`](/api/python/enums/pdf-line-ending-style/)

---

### end_point

```python

@property
def end_point(self) -> Optional[vec2f]

@end_point.setter
def end_point(self, value: Optional[vec2f]) -> None

```

The end point of the line.

**Type:** `Optional[vec2f]`

---

### start_cap

```python

@property
def start_cap(self) -> PdfLineEndingStyle

@start_cap.setter
def start_cap(self, value: PdfLineEndingStyle) -> None

```

The line ending style at the start of the line.

**Type:** [`PdfLineEndingStyle`](/api/python/enums/pdf-line-ending-style/)

---

### start_point

```python

@property
def start_point(self) -> Optional[vec2f]

@start_point.setter
def start_point(self, value: Optional[vec2f]) -> None

```

The start point of the line.

**Type:** `Optional[vec2f]`

---

## 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`

From [`PdfShapeAnnotation`](../pdf-shape-annotation/): `interior_color`

---

## Related pages

- [All public classes import directly from the top-level package:](/api/python/editors/pdf/annotations.md)
- [Pdf Annotation Collection](/api/python/editors/pdf/annotations/pdf-annotation-collection.md)
- [Pdf Circle Annotation](/api/python/editors/pdf/annotations/pdf-circle-annotation.md)
- [Pdf Annotation](/api/python/editors/pdf/annotations/pdf-annotation.md)
- [Pdf Highlight Annotation](/api/python/editors/pdf/annotations/pdf-highlight-annotation.md)
- [Pdf Free Text Annotation](/api/python/editors/pdf/annotations/pdf-free-text-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 Markup Annotation](/api/python/editors/pdf/annotations/pdf-markup-annotation.md)
- [Pdf Shape Annotation](/api/python/editors/pdf/annotations/pdf-shape-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 Strike Out Annotation](/api/python/editors/pdf/annotations/pdf-strike-out-annotation.md)
- [Pdf Stamp Annotation](/api/python/editors/pdf/annotations/pdf-stamp-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)

