pub struct PdfPageObjectContentMark<'a> { /* private fields */ }Expand description
A single content mark associated with a PdfPageObject.
Content marks provide a bridge between page objects (geometric/visual elements) and the PDF structure tree (semantic document structure). Each mark has a name (e.g., “P”, “Span”, “Artifact”) and optional key-value parameters.
Implementations§
Source§impl<'a> PdfPageObjectContentMark<'a>
impl<'a> PdfPageObjectContentMark<'a>
Sourcepub fn name(&self) -> Option<String>
pub fn name(&self) -> Option<String>
Returns the name of this content mark (e.g., “P”, “Span”, “Artifact”).
Sourcepub fn param_count(&self) -> usize
pub fn param_count(&self) -> usize
Returns the number of key-value parameters in this content mark.
Sourcepub fn param_key(&self, index: usize) -> Option<String>
pub fn param_key(&self, index: usize) -> Option<String>
Returns the key name of the parameter at the given index.
Sourcepub fn param_int_value(&self, key: &str) -> Option<i32>
pub fn param_int_value(&self, key: &str) -> Option<i32>
Returns the integer value of the parameter with the given key, if the parameter exists and is a number type.
Sourcepub fn param_float_value(&self, key: &str) -> Option<f32>
pub fn param_float_value(&self, key: &str) -> Option<f32>
Returns the float value of the parameter with the given key, if the parameter exists and is a number type.
Sourcepub fn param_string_value(&self, key: &str) -> Option<String>
pub fn param_string_value(&self, key: &str) -> Option<String>
Returns the string value of the parameter with the given key, if the parameter exists and is a string type.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PdfPageObjectContentMark<'a>
impl<'a> !Send for PdfPageObjectContentMark<'a>
impl<'a> !Sync for PdfPageObjectContentMark<'a>
impl<'a> !UnwindSafe for PdfPageObjectContentMark<'a>
impl<'a> Freeze for PdfPageObjectContentMark<'a>
impl<'a> Unpin for PdfPageObjectContentMark<'a>
impl<'a> UnsafeUnpin for PdfPageObjectContentMark<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more