Represents a base annotation in a PDF document.
from nutrient_sdk import PdfAnnotationConstruction
PdfAnnotation cannot be instantiated directly. Obtain instances through static factory methods or via other SDK classes.
Properties
blend_mode
@propertydef blend_mode(self) -> strThe blend mode of the annotation (e.g., “Normal”, “Multiply”). Returns an empty string if no blend mode is explicitly set on the annotation, which indicates the default/unspecified blend mode.
Type: str
Read-only property.
border_effect
@propertydef border_effect(self) -> strThe border effect style (e.g., “S” for solid/no effect, “C” for cloudy).
Type: str
Read-only property.
border_effect_intensity
@propertydef border_effect_intensity(self) -> floatThe border effect intensity (0 = no effect, higher values = more pronounced).
Type: float
Read-only property.
border_style
@propertydef border_style(self) -> PdfBorderStyle
@border_style.setterdef border_style(self, value: PdfBorderStyle) -> NoneThe border style of the annotation.
Type: PdfBorderStyle
border_width
@propertydef border_width(self) -> float
@border_width.setterdef border_width(self, value: float) -> NoneThe border width of the annotation in points.
Type: float
color
@propertydef color(self) -> Color
@color.setterdef color(self, value: Color) -> NoneThe annotation color.
Type: Color
contents
@propertydef contents(self) -> str
@contents.setterdef contents(self, value: str) -> NoneThe annotation’s text contents.
Type: str
index
@propertydef index(self) -> intThe 0-based index of this annotation in the page’s annotation array.
Type: int
Read-only property.
is_hidden
@propertydef is_hidden(self) -> bool
@is_hidden.setterdef is_hidden(self, value: bool) -> NoneWhether the annotation is hidden.
Type: bool
is_printable
@propertydef is_printable(self) -> bool
@is_printable.setterdef is_printable(self, value: bool) -> NoneWhether the annotation is printable.
Type: bool
modification_date
@propertydef modification_date(self) -> strThe annotation’s modification date.
Type: str
Read-only property.
name
@propertydef name(self) -> strThe annotation’s unique name/identifier.
Type: str
Read-only property.
rect
@propertydef rect(self) -> Optional[RectF]
@rect.setterdef rect(self, value: Optional[RectF]) -> NoneThe rectangle that defines the location and size of the annotation on the page.
Type: Optional[RectF]
sub_type
@propertydef sub_type(self) -> strThe annotation subtype (e.g., “Text”, “Link”, “Highlight”).
Type: str
Read-only property.
title
@propertydef title(self) -> str
@title.setterdef title(self, value: str) -> NoneThe annotation’s title/author.
Type: str