diff --git a/src/annotations.rs b/src/annotations.rs index a3d6b60..aeed946 100644 --- a/src/annotations.rs +++ b/src/annotations.rs @@ -187,7 +187,7 @@ impl<'a> Annotation<'a> { /// Start writing the `/MK` dictionary. Only permissible for the subtype /// `Widget`. - pub fn appearance(&mut self) -> Appearance<'_> { + pub fn appearance_characteristics(&mut self) -> AppearanceCharacteristics<'_> { self.dict.insert(Name(b"MK")).start() } @@ -328,16 +328,16 @@ bitflags::bitflags! { } } -/// Writer for an _appearance dictionary_. +/// Writer for an _appearance characteristics dictionary_. /// /// This struct is created by [`Annotation::appearance`]. -pub struct Appearance<'a> { +pub struct AppearanceCharacteristics<'a> { dict: Dict<'a>, } -writer!(Appearance: |obj| Self { dict: obj.dict() }); +writer!(AppearanceCharacteristics: |obj| Self { dict: obj.dict() }); -impl<'a> Appearance<'a> { +impl<'a> AppearanceCharacteristics<'a> { /// Write the `/R` attribute. This is the number of degrees the widget /// annotation should be rotated by counterclockwise relative to its page /// when displayed. This should be a multiple of 90. @@ -462,7 +462,7 @@ impl<'a> Appearance<'a> { } } -deref!('a, Appearance<'a> => Dict<'a>, dict); +deref!('a, AppearanceCharacteristics<'a> => Dict<'a>, dict); /// The position the text of the widget annotation's caption relative to its /// icon. diff --git a/src/forms.rs b/src/forms.rs index abcbe32..e95d1dc 100644 --- a/src/forms.rs +++ b/src/forms.rs @@ -23,8 +23,7 @@ impl<'a> Field<'a> { /// Start writing the `/Kids` attribute to set the immediate children of /// this field. These references shall refer to other [fields][Field], or - /// [widget](crate::types::AnnotationType::Widget) - /// [annoations](Annotation). + /// [widget](crate::types::AnnotationType::Widget) [annoations](Annotation). pub fn children(&mut self) -> TypedArray<'_, Ref> { self.dict.insert(Name(b"Kids")).array().typed() } diff --git a/src/lib.rs b/src/lib.rs index 50bea96..08db6e6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -107,7 +107,7 @@ mod xobject; pub mod writers { use super::*; pub use actions::{Action, AdditionalActions, Fields}; - pub use annotations::{Annotation, Appearance, BorderStyle, IconFit}; + pub use annotations::{Annotation, AppearanceCharacteristics, BorderStyle, IconFit}; pub use attributes::{ Attributes, FieldAttributes, LayoutAttributes, ListAttributes, TableAttributes, UserProperty,