pub enum PdfPageObjectType {
Unsupported,
Text,
Path,
Image,
Shading,
XObjectForm,
}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
Any External Object (“XObject”) page object type not directly supported by Pdfium.
Text
A page object containing renderable text.
Path
A page object containing a renderable vector path.
Image
A page object containing a renderable bitmapped image.
Shading
A page object containing a renderable geometric shape whose color is an arbitrary function of position within the shape.
XObjectForm
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<PdfPageObjectType> for PdfPageObjectType
impl PartialEq<PdfPageObjectType> for PdfPageObjectType
source§fn eq(&self, other: &PdfPageObjectType) -> bool
fn eq(&self, other: &PdfPageObjectType) -> bool
self and other values to be equal, and is used
by ==.source§impl PartialOrd<PdfPageObjectType> for PdfPageObjectType
impl PartialOrd<PdfPageObjectType> for PdfPageObjectType
source§fn partial_cmp(&self, other: &PdfPageObjectType) -> Option<Ordering>
fn partial_cmp(&self, other: &PdfPageObjectType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read more