pub struct ParsedPdf {
pub version: String,
pub catalog: Option<HashMap<String, String>>,
pub page_tree: Option<PageTree>,
pub fonts: Vec<String>,
pub uses_device_rgb: bool,
pub uses_device_cmyk: bool,
pub uses_device_gray: bool,
pub graphics_states: Vec<GraphicsState>,
pub text_objects: Vec<TextObject>,
pub annotations: Vec<Annotation>,
pub xref_valid: bool,
pub object_count: usize,
}Expand description
Parsed representation of a PDF for verification
Fields§
§version: StringPDF version from header
catalog: Option<HashMap<String, String>>Document catalog dictionary
page_tree: Option<PageTree>Page tree information
fonts: Vec<String>Font information
uses_device_rgb: boolColor space usage flags
uses_device_cmyk: bool§uses_device_gray: bool§graphics_states: Vec<GraphicsState>Graphics state information
text_objects: Vec<TextObject>Text objects found
annotations: Vec<Annotation>Annotations found
xref_valid: boolCross-reference table info
object_count: usizeTotal objects in PDF
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParsedPdf
impl RefUnwindSafe for ParsedPdf
impl Send for ParsedPdf
impl Sync for ParsedPdf
impl Unpin for ParsedPdf
impl UnwindSafe for ParsedPdf
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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