---
title: "TrimMarkAnnotation"
url: "https://reference.aspose.com/pdf/java/com.aspose.pdf/trimmarkannotation/"
product: "Aspose.PDF for Java API Reference"
description: "Represents a Trim Mark annotation. Trim marks are placed at the corners of a printed page to indicate where the page is to be trimmed."
---

**Inheritance:**
java.lang.Object, com.aspose.pdf.BaseParagraph com.aspose.pdf.Annotation com.aspose.pdf.PrinterMarkAnnotation com.aspose.pdf.CornerPrinterMarkAnnotation com.aspose.pdf.TrimMarkAnnotation, com.aspose.pdf.BaseParagraph, com.aspose.pdf.Annotation com.aspose.pdf.PrinterMarkAnnotation com.aspose.pdf.CornerPrinterMarkAnnotation com.aspose.pdf.TrimMarkAnnotation, com.aspose.pdf.Annotation, com.aspose.pdf.PrinterMarkAnnotation com.aspose.pdf.CornerPrinterMarkAnnotation com.aspose.pdf.TrimMarkAnnotation, com.aspose.pdf.PrinterMarkAnnotation, com.aspose.pdf.CornerPrinterMarkAnnotation com.aspose.pdf.TrimMarkAnnotation, com.aspose.pdf.CornerPrinterMarkAnnotation, com.aspose.pdf.TrimMarkAnnotation

**All Implemented Interfaces:**
com.aspose.ms.System.ICloneable

```
public final class TrimMarkAnnotation extends CornerPrinterMarkAnnotation
```

Represents a Trim Mark annotation. Trim marks are placed at the corners of a printed page to indicate where the page is to be trimmed.

## Constructors

| Constructor | Description |
| --- | --- |
| [TrimMarkAnnotation](#TrimMarkAnnotation-com.aspose.pdf.Page-com.aspose.pdf.PrinterMarkCornerPosition-) | Initializes a new instance of the {@link TrimMarkAnnotation} class. |

## Methods

| Method | Description |
| --- | --- |
| [accept](#accept-com.aspose.pdf.AnnotationSelector-) | Accepts visitor for annotation processing. |
| [getAnnotationType](#getAnnotationType--) | Gets type of annotation. |

### TrimMarkAnnotation {#TrimMarkAnnotation-com.aspose.pdf.Page-com.aspose.pdf.PrinterMarkCornerPosition-}
Initializes a new instance of the {@link TrimMarkAnnotation} class.

### accept {#accept-com.aspose.pdf.AnnotationSelector-}
Accepts visitor for annotation processing.

### getAnnotationType {#getAnnotationType--}
```
public AnnotationType getAnnotationType()
```

Gets type of annotation.

**Returns:**
int value
