Enum Level Copy item path Source pub enum Level {
A1b,
A2b,
}Expand description Which PDF/A conformance level to check against.
An enum rather than a string or a pair of numbers, because the two levels
differ in what they forbid and a caller who passes the wrong spelling of
a string gets no answer at all. Only the two b (basic) levels are here;
the module docs say why the a levels are absent.
PDF/A-1b, ISO 19005-1:2005. Built on PDF 1.4: no transparency at all,
no optional content, no embedded files, no JPEG 2000.
PDF/A-2b, ISO 19005-2:2011. Built on PDF 1.7: transparency is allowed
when a blending colour space is defined, JPEG 2000 is allowed, and
embedded files are allowed if they are themselves PDF/A.
The level’s name as ISO 19005 spells it.
The pdfaid:part an XMP identification schema must carry for this
level: 1 for A-1, 2 for A-2.
Whether transparency is forbidden outright.
True for A-1 only. A-2 permits transparency, so the check that walks
for it is skipped rather than run-and-ignored — a check that produces
findings nobody reads is how a report grows noise.
Performs copy-assignment from
source.
Read more Formats the value using the given formatter.
Read more Formats the value using the given formatter.
Read more Compares and returns the maximum of two values.
Read more Compares and returns the minimum of two values.
Read more Restrict a value to a certain interval.
Read more 🔬 This is a nightly-only experimental API. (clamp_to)
Restrict a value to a certain range.
Read more This method returns an ordering between
self and
other values if one exists.
Read more Tests less than (for
self and
other) and is used by the
< operator.
Read more Tests less than or equal to (for
self and
other) and is used by the
<= operator.
Read more Tests greater than (for
self and
other) and is used by the
>
operator.
Read more Tests greater than or equal to (for
self and
other) and is used by
the
>= operator.
Read more Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more Converts the given value to a
String.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.