Skip to content

Commit

Permalink
Make nicer
Browse files Browse the repository at this point in the history
  • Loading branch information
laurmaedje committed Sep 30, 2024
1 parent 4c034db commit a350c09
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,10 @@ impl<'a> FileSpec<'a> {
/// Note that this key is forbidden in PDF/A-1 and restricted in PDF/A-2 an
/// PDF/A-4.
pub fn embedded_file_with_unicode(&mut self, id: Ref) -> &mut Self {
let mut path_array = self.insert(Name(b"EF")).dict();
path_array.pair(Name(b"F"), id);
path_array.pair(Name(b"UF"), id);
path_array.finish();

self.insert(Name(b"EF"))
.dict()
.pair(Name(b"F"), id)
.pair(Name(b"UF"), id);
self
}

Expand Down

0 comments on commit a350c09

Please sign in to comment.