Skip to content

Commit

Permalink
Add Catalog method for writing the associated files array (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasEi authored Sep 4, 2024
1 parent e6c6a7d commit f809ed8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
Cargo.lock
_things
.DS_Store
.idea/
6 changes: 6 additions & 0 deletions src/structure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ impl<'a> Catalog<'a> {
pub fn output_intents(&mut self) -> TypedArray<'_, OutputIntent> {
self.insert(Name(b"OutputIntents")).array().typed()
}

/// Start writing the `/AF` array to specify the associated files of the
/// document. PDF 2.0+.
pub fn associated_files(&mut self) -> TypedArray<'_, FileSpec> {
self.insert(Name(b"AF")).array().typed()
}
}

deref!('a, Catalog<'a> => Dict<'a>, dict);
Expand Down

0 comments on commit f809ed8

Please sign in to comment.