Struct pdfium_render::link::PdfLink
source · pub struct PdfLink<'a> { /* private fields */ }
Implementations§
source§impl<'a> PdfLink<'a>
impl<'a> PdfLink<'a>
A single link contained within a PdfPage
, a PdfPageAnnotation
, or a PdfBookmark
.
Each link may have a corresponding PdfAction that will be triggered when the user interacts with the link, and a PdfDestination that indicates the target of any behaviour triggered by the PdfAction.
sourcepub fn bindings(&self) -> &dyn PdfiumLibraryBindings
pub fn bindings(&self) -> &dyn PdfiumLibraryBindings
Returns the PdfiumLibraryBindings used by this PdfLink.
sourcepub fn action(&self) -> Option<PdfAction<'a>>
pub fn action(&self) -> Option<PdfAction<'a>>
Returns the PdfAction associated with this PdfLink, if any.
The action indicates the behaviour that will occur when the user interacts with the
link in a PDF viewer. For most links, this will be a local navigation action
of type PdfActionType::GoToDestinationInSameDocument
, but the PDF file format supports
a variety of other actions.
sourcepub fn destination(&self) -> Option<PdfDestination<'a>>
pub fn destination(&self) -> Option<PdfDestination<'a>>
Returns the PdfDestination associated with this PdfLink, if any.
The destination specifies the page and region, if any, that will be the target of any behaviour that will occur when the user interacts with the link in a PDF viewer.