Skip to content

Commit

Permalink
Proof read
Browse files Browse the repository at this point in the history
  • Loading branch information
tingerrr committed Oct 28, 2023
1 parent 6803f1d commit b022cc9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/forms.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,15 @@ impl<'a> Form<'a> {
}

/// Write the document-wide default value for the `/DA` attribute of
/// fields containing variable text.
/// fields containing variable text. See
/// [`Field::vartext_default_appearance`].
pub fn default_appearance(&mut self, default: Str) -> &mut Self {
self.dict.pair(Name(b"DA"), default);
self
}

/// Write the document-wide default value for the `/Q` attribute of
/// fields containing variable text.
/// fields containing variable text. See [`Field::vartext_quadding`].
pub fn quadding(&mut self, default: Quadding) -> &mut Self {
self.dict.pair(Name(b"Q"), default as i32);
self
Expand All @@ -86,7 +87,7 @@ bitflags::bitflags! {
}
}

/// A form field.
/// Writer for an _ form field dictionary_.
///
/// This struct is created by [`Chunk::form_field`].
pub struct Field<'a> {
Expand All @@ -112,7 +113,7 @@ impl<'a> Field<'a> {

/// Write 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) [annotations](Annotation).
pub fn children(&mut self, children: impl IntoIterator<Item = Ref>) -> &mut Self {
self.dict.insert(Name(b"Kids")).array().items(children);
self
Expand Down

0 comments on commit b022cc9

Please sign in to comment.