Skip to content

Commit f809ed8

Browse files
authored
Add Catalog method for writing the associated files array (#39)
1 parent e6c6a7d commit f809ed8

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
Cargo.lock
33
_things
44
.DS_Store
5+
.idea/

src/structure.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,12 @@ impl<'a> Catalog<'a> {
136136
pub fn output_intents(&mut self) -> TypedArray<'_, OutputIntent> {
137137
self.insert(Name(b"OutputIntents")).array().typed()
138138
}
139+
140+
/// Start writing the `/AF` array to specify the associated files of the
141+
/// document. PDF 2.0+.
142+
pub fn associated_files(&mut self) -> TypedArray<'_, FileSpec> {
143+
self.insert(Name(b"AF")).array().typed()
144+
}
139145
}
140146

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

0 commit comments

Comments
 (0)