pub struct PdfAnnotation { /* private fields */ }Expand description
Wraps PDFAnnotation.
Implementations§
Source§impl PdfAnnotation
impl PdfAnnotation
Sourcepub fn new(bounds: PdfRect, annotation_type: &str) -> Result<Self>
pub fn new(bounds: PdfRect, annotation_type: &str) -> Result<Self>
Wraps PDFAnnotation(bounds:forType:withProperties:).
Sourcepub fn new_with_subtype(
bounds: PdfRect,
annotation_subtype: PdfAnnotationSubtype,
) -> Result<Self>
pub fn new_with_subtype( bounds: PdfRect, annotation_subtype: PdfAnnotationSubtype, ) -> Result<Self>
Wraps PDFAnnotation(bounds:forType:withProperties:) using a typed subtype.
Sourcepub fn info(&self) -> Result<PdfAnnotationInfo>
pub fn info(&self) -> Result<PdfAnnotationInfo>
Wraps the corresponding PDFAnnotation API.
Sourcepub fn set_contents(&self, value: Option<&str>) -> Result<()>
pub fn set_contents(&self, value: Option<&str>) -> Result<()>
Wraps the corresponding PDFAnnotation API.
Sourcepub fn set_highlighted(&self, value: bool)
pub fn set_highlighted(&self, value: bool)
Wraps the corresponding PDFAnnotation API.
Sourcepub fn set_border(&self, border: Option<&PdfBorder>) -> Result<()>
pub fn set_border(&self, border: Option<&PdfBorder>) -> Result<()>
Wraps the corresponding PDFAnnotation API.
Sourcepub fn set_action<A: PdfActionLike>(&self, action: Option<&A>) -> Result<()>
pub fn set_action<A: PdfActionLike>(&self, action: Option<&A>) -> Result<()>
Wraps the corresponding PDFAnnotation API.
Sourcepub fn clear_action(&self) -> Result<()>
pub fn clear_action(&self) -> Result<()>
Wraps the corresponding PDFAnnotation API.
Sourcepub fn action_url(&self) -> Option<PdfActionUrl>
pub fn action_url(&self) -> Option<PdfActionUrl>
Wraps the corresponding PDFAnnotation API.
Sourcepub fn set_action_url(&self, action: Option<&PdfActionUrl>) -> Result<()>
pub fn set_action_url(&self, action: Option<&PdfActionUrl>) -> Result<()>
Wraps the corresponding PDFAnnotation API.
Sourcepub fn action_goto(&self) -> Option<PdfActionGoTo>
pub fn action_goto(&self) -> Option<PdfActionGoTo>
Wraps the corresponding PDFAnnotation API.
Sourcepub fn set_action_goto(&self, action: Option<&PdfActionGoTo>) -> Result<()>
pub fn set_action_goto(&self, action: Option<&PdfActionGoTo>) -> Result<()>
Wraps the corresponding PDFAnnotation API.
Trait Implementations§
Source§impl Clone for PdfAnnotation
impl Clone for PdfAnnotation
Source§fn clone(&self) -> PdfAnnotation
fn clone(&self) -> PdfAnnotation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PdfAnnotation
impl RefUnwindSafe for PdfAnnotation
impl !Send for PdfAnnotation
impl !Sync for PdfAnnotation
impl Unpin for PdfAnnotation
impl UnsafeUnpin for PdfAnnotation
impl UnwindSafe for PdfAnnotation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more