Trait pdfium_render::page_object::PdfPageObjectCommon
source · [−]pub trait PdfPageObjectCommon<'a> {
fn index(&self) -> PdfPageObjectIndex;
fn has_transparency(&self) -> bool;
fn bounds(&self) -> Result<PdfRect, PdfiumError>;
}Expand description
Functionality common to all PdfPageObject objects, regardless of their PdfPageObjectType.
Required Methods
fn index(&self) -> PdfPageObjectIndex
fn index(&self) -> PdfPageObjectIndex
Returns the zero-based object index of this PdfPageObject in its containing PdfPage.
fn has_transparency(&self) -> bool
fn has_transparency(&self) -> bool
Returns true if this PdfPageObject contains transparency.
fn bounds(&self) -> Result<PdfRect, PdfiumError>
fn bounds(&self) -> Result<PdfRect, PdfiumError>
Returns the bounding box of this PdfPageObject.