pub struct FlattenValidation {
pub has_no_xfa: bool,
pub has_no_needs_rendering: bool,
pub has_no_acroform: bool,
pub page_count: usize,
pub warnings: Vec<String>,
}Expand description
Result of a post-flatten validation pass.
All has_no_* fields should be true for a clean flat PDF. Any
remaining XFA artifacts are reported in warnings.
Fields§
§has_no_xfa: boolTrue when the catalog contains no /XFA entry (directly or via AcroForm).
has_no_needs_rendering: boolTrue when the catalog contains no /NeedsRendering entry.
has_no_acroform: boolTrue when the catalog contains no /AcroForm entry.
page_count: usizeNumber of pages in the output PDF.
warnings: Vec<String>Human-readable warnings for each detected XFA artifact.
Auto Trait Implementations§
impl Freeze for FlattenValidation
impl RefUnwindSafe for FlattenValidation
impl Send for FlattenValidation
impl Sync for FlattenValidation
impl Unpin for FlattenValidation
impl UnsafeUnpin for FlattenValidation
impl UnwindSafe for FlattenValidation
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> 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