pub enum ErrorCode {
Show 32 variants
MissingXmpMetadata,
MissingPdfaIdentification,
InvalidPdfaIdentification,
XmpMetadataMismatch,
FontNotEmbedded,
FontMissingTables,
FontInvalidEncoding,
FontMissingToUnicode,
DeviceColorWithoutIntent,
MissingOutputIntent,
InvalidIccProfile,
IccProfileVersionMismatch,
UnsupportedImageCompression,
InvalidImageColorSpace,
LzwCompressionNotAllowed,
MissingDocumentStructure,
InvalidStructureTree,
MissingLanguage,
TransparencyNotAllowed,
JavaScriptNotAllowed,
MultimediaNotAllowed,
ExternalContentNotAllowed,
EncryptionNotAllowed,
InvalidAnnotation,
MissingAppearanceStream,
InvalidAction,
LaunchActionNotAllowed,
EmbeddedFileNotAllowed,
MissingAfRelationship,
PostScriptNotAllowed,
ReferenceXObjectNotAllowed,
OptionalContentIssue,
}Expand description
Error codes for PDF/A violations.
Variants§
MissingXmpMetadata
Missing XMP metadata
MissingPdfaIdentification
Missing PDF/A identification in XMP
InvalidPdfaIdentification
Invalid PDF/A identification
XmpMetadataMismatch
XMP metadata not synchronized with document info
FontNotEmbedded
Font not embedded
FontMissingTables
Font missing required tables
FontInvalidEncoding
Font has invalid encoding
FontMissingToUnicode
Font missing ToUnicode CMap
DeviceColorWithoutIntent
Device-dependent color used without output intent
MissingOutputIntent
Missing output intent
InvalidIccProfile
Invalid ICC profile
IccProfileVersionMismatch
Incompatible ICC profile version
UnsupportedImageCompression
Image uses unsupported compression
InvalidImageColorSpace
Image has invalid color space
LzwCompressionNotAllowed
LZW compression not allowed
MissingDocumentStructure
Missing document structure (for level A)
InvalidStructureTree
Invalid structure tree
MissingLanguage
Missing language specification
TransparencyNotAllowed
Transparency used (PDF/A-1)
JavaScriptNotAllowed
JavaScript present
MultimediaNotAllowed
Audio/video content present
ExternalContentNotAllowed
External content reference
EncryptionNotAllowed
Encryption present
InvalidAnnotation
Invalid annotation
MissingAppearanceStream
Widget annotation without appearance stream
InvalidAction
Invalid action type
LaunchActionNotAllowed
Launch action not allowed
EmbeddedFileNotAllowed
Embedded file not allowed (PDF/A-1, PDF/A-2)
MissingAfRelationship
Embedded file missing AF relationship (PDF/A-3)
PostScriptNotAllowed
PostScript XObject not allowed
ReferenceXObjectNotAllowed
Reference XObject not allowed
OptionalContentIssue
Optional content (layers) issue
Trait Implementations§
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.