PdfTextAnnotation
Represents a text annotation (sticky note) in a PDF document.
from nutrient import PdfTextAnnotationMethods
set_border_style
def set_border_style(self, value: PdfBorderStyle) -> NoneParameters:
| Name | Type | Description |
|---|---|---|
value | PdfBorderStyle |
set_border_width
def set_border_width(self, value: float) -> NoneParameters:
| Name | Type | Description |
|---|---|---|
value | float |
set_color
def set_color(self, value: Color) -> NoneParameters:
| Name | Type | Description |
|---|---|---|
value | Color |
set_contents
def set_contents(self, value: str) -> NoneParameters:
| Name | Type | Description |
|---|---|---|
value | str |
set_icon_name
def set_icon_name(self, value: str) -> NoneSets the icon name for the annotation. Valid values: Comment, Key, Note, Help, NewParagraph, Paragraph, Insert
Parameters:
| Name | Type | Description |
|---|---|---|
value | str | The value to set for the IconName property. |
set_is_hidden
def set_is_hidden(self, value: bool) -> NoneParameters:
| Name | Type | Description |
|---|---|---|
value | bool |
set_is_open
def set_is_open(self, value: bool) -> NoneSets whether the annotation popup should initially be open.
Parameters:
| Name | Type | Description |
|---|---|---|
value | bool | The value to set for the IsOpen property. |
set_is_printable
def set_is_printable(self, value: bool) -> NoneParameters:
| Name | Type | Description |
|---|---|---|
value | bool |
set_opacity
def set_opacity(self, value: float) -> NoneParameters:
| Name | Type | Description |
|---|---|---|
value | float |
set_rect
def set_rect(self, value: Any) -> NoneParameters:
| Name | Type | Description |
|---|---|---|
value | Any |
set_subject
def set_subject(self, value: str) -> NoneParameters:
| Name | Type | Description |
|---|---|---|
value | str |
set_title
def set_title(self, value: str) -> NoneParameters:
| Name | Type | Description |
|---|---|---|
value | str |
Properties
border_style
@propertydef border_style(self) -> PdfBorderStyleType: PdfBorderStyle
Read-only property.
border_width
@propertydef border_width(self) -> floatType: float
Read-only property.
color
@propertydef color(self) -> ColorType: Color
Read-only property.
contents
@propertydef contents(self) -> strType: str
Read-only property.
creation_date
@propertydef creation_date(self) -> strType: str
Read-only property.
icon_name
@propertydef icon_name(self) -> strGets the icon name for the annotation. Valid values: Comment, Key, Note, Help, NewParagraph, Paragraph, Insert
Type: str
Read-only property.
index
@propertydef index(self) -> intType: int
Read-only property.
is_hidden
@propertydef is_hidden(self) -> boolType: bool
Read-only property.
is_open
@propertydef is_open(self) -> boolGets whether the annotation popup should initially be open.
Type: bool
Read-only property.
is_printable
@propertydef is_printable(self) -> boolType: bool
Read-only property.
modification_date
@propertydef modification_date(self) -> strType: str
Read-only property.
name
@propertydef name(self) -> strType: str
Read-only property.
opacity
@propertydef opacity(self) -> floatType: float
Read-only property.
rect
@propertydef rect(self) -> AnyType: Any
Read-only property.
rich_text_contents
@propertydef rich_text_contents(self) -> strType: str
Read-only property.
state
@propertydef state(self) -> strGets the state of the annotation (for review workflows).
Type: str
Read-only property.
state_model
@propertydef state_model(self) -> strGets the state model (e.g., “Marked”, “Review”).
Type: str
Read-only property.
subject
@propertydef subject(self) -> strType: str
Read-only property.
sub_type
@propertydef sub_type(self) -> strType: str
Read-only property.
title
@propertydef title(self) -> strType: str
Read-only property.