#[non_exhaustive]pub enum SkipReason {
UnsupportedFilter(String),
DecodeFailed(String),
Undecodable,
Truncated,
Missing,
Unsupported,
LimitExceeded,
}Expand description
Why a piece of page content was dropped or approximated during rasterization.
Rendering is lenient: content pdfboss cannot read is skipped so the rest of the page still rasterizes. This enum records why, so callers can tell an intentionally blank page from a page whose content pdfboss could not read.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnsupportedFilter(String)
The stream’s /Filter chain names a filter pdfboss does not decode.
DecodeFailed(String)
Reading the stream failed, carrying the underlying message: a filter that ran but gave up (corrupt data, size limit, …), or a syntax error in a content stream.
Undecodable
Filters applied cleanly but the bytes could not be interpreted (bad image dimensions, unparsable content stream, unsupported JPEG, …).
Truncated
The stream held fewer samples than the image’s dimensions and bit depth demand; the missing region painted as zero samples.
Missing
A resource the operator names is absent, or is not the kind of object the operator needs.
Unsupported
pdfboss understands the construct but does not paint it yet, so it was omitted or approximated.
LimitExceeded
A nesting or size guard stopped the render at this point.
Trait Implementations§
Source§impl Clone for SkipReason
impl Clone for SkipReason
Source§fn clone(&self) -> SkipReason
fn clone(&self) -> SkipReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SkipReason
impl Debug for SkipReason
Source§impl Display for SkipReason
impl Display for SkipReason
impl Eq for SkipReason
Source§impl PartialEq for SkipReason
impl PartialEq for SkipReason
impl StructuralPartialEq for SkipReason
Auto Trait Implementations§
impl Freeze for SkipReason
impl RefUnwindSafe for SkipReason
impl Send for SkipReason
impl Sync for SkipReason
impl Unpin for SkipReason
impl UnsafeUnpin for SkipReason
impl UnwindSafe for SkipReason
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