pub enum PdfPageObjectType {
Unsupported = 0,
Text = 1,
Path = 2,
Image = 3,
Shading = 4,
XObjectForm = 5,
}Expand description
The type of a single renderable PdfPageObject.
Note that Pdfium does not support or recognize all PDF page object types. For instance, Pdfium does not currently support or recognize all types of External Object (“XObject”) page object types supported by Adobe Acrobat and Foxit’s commercial PDF SDK. In these cases, Pdfium will return PdfPageObjectType::Unsupported.
Variants§
Unsupported = 0
Any External Object (“XObject”) page object type not directly supported by Pdfium.
Text = 1
A page object containing renderable text.
Path = 2
A page object containing a renderable vector path.
Image = 3
A page object containing a renderable bitmapped image.
Shading = 4
A page object containing a renderable geometric shape whose color is an arbitrary function of position within the shape.
XObjectForm = 5
A page object containing a content stream that itself may consist of multiple other page objects. When this page object is rendered, it renders all its constituent page objects, effectively serving as a template or stamping object.
Despite the page object name including “form”, this page object type bears no relation to an interactive form containing form fields.
Trait Implementations§
Source§impl Clone for PdfPageObjectType
impl Clone for PdfPageObjectType
Source§fn clone(&self) -> PdfPageObjectType
fn clone(&self) -> PdfPageObjectType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PdfPageObjectType
impl Debug for PdfPageObjectType
Source§impl Hash for PdfPageObjectType
impl Hash for PdfPageObjectType
Source§impl PartialEq for PdfPageObjectType
impl PartialEq for PdfPageObjectType
Source§impl PartialOrd for PdfPageObjectType
impl PartialOrd for PdfPageObjectType
impl Copy for PdfPageObjectType
impl Eq for PdfPageObjectType
impl StructuralPartialEq for PdfPageObjectType
Auto Trait Implementations§
impl Freeze for PdfPageObjectType
impl RefUnwindSafe for PdfPageObjectType
impl Send for PdfPageObjectType
impl Sync for PdfPageObjectType
impl Unpin for PdfPageObjectType
impl UnwindSafe for PdfPageObjectType
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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