PdfLinkAnnotation
Represents a link annotation that can navigate to a destination or perform an action.
from nutrient import PdfLinkAnnotationMethods
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_destination
def set_destination(self, page_number: int, x: Any, y: Any) -> NoneSets the link destination to navigate to a specific page in the document.
Parameters:
| Name | Type | Description |
|---|---|---|
page_number | int | The 1-based destination page number. |
x | Any | Optional X coordinate on the destination page. If null, the view scrolls to the top-left. |
y | Any | Optional Y coordinate on the destination page. If null, the view scrolls to the top-left. |
set_is_hidden
def set_is_hidden(self, value: bool) -> NoneParameters:
| Name | Type | Description |
|---|---|---|
value | bool |
set_is_printable
def set_is_printable(self, value: bool) -> NoneParameters:
| Name | Type | Description |
|---|---|---|
value | bool |
set_rect
def set_rect(self, value: Any) -> NoneParameters:
| Name | Type | Description |
|---|---|---|
value | Any |
set_title
def set_title(self, value: str) -> NoneParameters:
| Name | Type | Description |
|---|---|---|
value | str |
set_uri
def set_uri(self, value: str) -> NoneSets the URI for this link annotation. Setting a non-empty value creates a URI action; setting empty removes any existing action.
Parameters:
| Name | Type | Description |
|---|---|---|
value | str | The value to set for the URI property. |
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.
destination_page_index
@propertydef destination_page_index(self) -> intGets the destination page index (0-based) if this link has an internal page destination. Returns -1 if no page destination is found.
Type: int
Read-only property.
highlighting_mode
@propertydef highlighting_mode(self) -> strGets the highlighting mode for the link.
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_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.
rect
@propertydef rect(self) -> AnyType: Any
Read-only property.
sub_type
@propertydef sub_type(self) -> strType: str
Read-only property.
title
@propertydef title(self) -> strType: str
Read-only property.
uri
@propertydef uri(self) -> strGets the URI for this link annotation. Setting a non-empty value creates a URI action; setting empty removes any existing action.
Type: str
Read-only property.