pub struct FixedPrintSpec {
pub matrix: Option<[f32; 6]>,
pub h: Option<f32>,
pub v: Option<f32>,
}Expand description
/FixedPrint sub-dict for AnnotationKind::Watermark (ISO 32000-1
§12.5.6.22 Table 191, round 252). Every field is optional with an
explicit Table 191 default; the writer omits each entry whose value
equals the default so a write-then-read cycle through the round-204
read_pdf_annotations enumerator yields the same
“absent → default” reader shape producer files use.
Mirrors the reader-side crate::FixedPrint decoded struct shape
so callers can copy fields directly between the two when manipulating
existing watermarks.
Default-constructed (FixedPrintSpec::default()) sets every entry
to None so the writer emits the bare /Type /FixedPrint marker
dict — the most-minimal way to opt a Watermark in to media-relative
rendering without overriding any geometry.
Fields§
§matrix: Option<[f32; 6]>/Matrix [a b c d e f] — affine transform applied to the
annotation rectangle before rendering. None ⇒ writer omits
the entry (Table 191 default is the identity matrix
[1 0 0 1 0 0]).
h: Option<f32>/H — horizontal translation as a fraction of the target media
width (1.0 = 100 %, 0.0 = 0 %). None ⇒ writer omits the
entry (Table 191 default 0).
v: Option<f32>/V — vertical translation as a fraction of the target media
height. None ⇒ writer omits the entry (Table 191 default 0).
Trait Implementations§
Source§impl Clone for FixedPrintSpec
impl Clone for FixedPrintSpec
Source§fn clone(&self) -> FixedPrintSpec
fn clone(&self) -> FixedPrintSpec
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 FixedPrintSpec
impl Debug for FixedPrintSpec
Source§impl Default for FixedPrintSpec
impl Default for FixedPrintSpec
Source§fn default() -> FixedPrintSpec
fn default() -> FixedPrintSpec
Source§impl PartialEq for FixedPrintSpec
impl PartialEq for FixedPrintSpec
Source§fn eq(&self, other: &FixedPrintSpec) -> bool
fn eq(&self, other: &FixedPrintSpec) -> bool
self and other values to be equal, and is used by ==.