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.
| Constructor and Description |
|---|
TrimMarkAnnotation(Page page,
PrinterMarkCornerPosition position)
Initializes a new instance of the
TrimMarkAnnotation class. |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(AnnotationSelector visitor)
Accepts visitor for annotation processing.
|
AnnotationType |
getAnnotationType()
Gets type of annotation.
|
getPosition, setPositionaddPrinterMarks, addPrinterMarkschangeAfterResize, createAnnotation, flatten, getActiveState, getAlignment, getAppearance, getBorder, getCharacteristics, getColor, getContents, getEngineDict, getEngineObj, getFlags, getFullName, getHeight, getHorizontalAlignment_Annotation_New, getModified, getModifiedInternal, getName, getNormalAppearance, getPage, getPageIndex, getPageIndex, getPdfActions, getRect, getRectangle, getStates, getTextHorizontalAlignment, getWidth, initialize, isUpdateAppearanceOnConvert, isUseFontSubset, setActiveState, setAlignment, setBorder, setColor, setContents, setFlags, setHeight, setHorizontalAlignment_Annotation_New, setModified, setModifiedInternal, setName, setRect, setTextHorizontalAlignment, setUpdateAppearanceOnConvert, setUseFontSubset, setWidthdeepClone, getHorizontalAlignment, getHyperlink, getMargin, getVerticalAlignment, getZIndex, isFirstParagraphInColumn, isInLineParagraph, isInNewPage, isKeptWithNext, setFirstParagraphInColumn, setHorizontalAlignment, setHyperlink, setInLineParagraph, setInNewPage, setKeptWithNext, setMargin, setVerticalAlignment, setZIndexpublic TrimMarkAnnotation(Page page, PrinterMarkCornerPosition position)
Initializes a new instance of the TrimMarkAnnotation class.
page - The page where the annotation will be added.position - The position of the trim mark on the page.
This constructor creates a TrimMarkAnnotation and adds it to the specified page at the specified position.
public AnnotationType getAnnotationType()
Gets type of annotation.
getAnnotationType in class AnnotationAnnotationTypepublic void accept(AnnotationSelector visitor)
Accepts visitor for annotation processing.
accept in class Annotationvisitor - AnnotationSelector object.Copyright © 2025 Aspose. All Rights Reserved.