pub struct LinkAnnotationSpec {
pub source_page_index: usize,
pub rect: [f32; 4],
pub target: LinkTarget,
}Expand description
One Link annotation spec (ISO 32000-1 §12.5.6.5 Table 173).
The annotation’s clickable area is a single rectangle in default
user-space coordinates (no QuadPoints support for this round —
QuadPoints lands when the next round wires text annotations).
The action is either an internal go-to destination (/Dest, by
far the more common form for “link to another page in the same
document”) or an external URI (/A << /S /URI /URI (...) >>).
Fields§
§source_page_index: usize0-based index of the page this annotation lives on.
rect: [f32; 4]/Rect [ llx lly urx ury ] — clickable bounding rectangle, in
default user space (no transform applied). PDF coordinates,
origin bottom-left.
target: LinkTargetWhere the link goes. Internal lowers to /Dest; Uri
lowers to /A << /S /URI /URI (...) >>.
Trait Implementations§
Source§impl Clone for LinkAnnotationSpec
impl Clone for LinkAnnotationSpec
Source§fn clone(&self) -> LinkAnnotationSpec
fn clone(&self) -> LinkAnnotationSpec
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 LinkAnnotationSpec
impl RefUnwindSafe for LinkAnnotationSpec
impl Send for LinkAnnotationSpec
impl Sync for LinkAnnotationSpec
impl Unpin for LinkAnnotationSpec
impl UnsafeUnpin for LinkAnnotationSpec
impl UnwindSafe for LinkAnnotationSpec
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