@@ -147,7 +147,7 @@ impl<'a> Catalog<'a> {
147147 }
148148
149149 /// Start writing the `/AF` array to specify the associated files of the
150- /// document. PDF 2.0+.
150+ /// document. PDF 2.0+ or PDF/A-3 .
151151 pub fn associated_files ( & mut self ) -> TypedArray < ' _ , FileSpec > {
152152 self . insert ( Name ( b"AF" ) ) . array ( ) . typed ( )
153153 }
@@ -495,6 +495,12 @@ impl<'a> StructElement<'a> {
495495 self . dict . pair ( Name ( b"ActualText" ) , actual_text) ;
496496 self
497497 }
498+
499+ /// Start writing the `/AF` array to specify the associated files of the
500+ /// element. PDF 2.0+ or PDF/A-3.
501+ pub fn associated_files ( & mut self ) -> TypedArray < ' _ , FileSpec > {
502+ self . insert ( Name ( b"AF" ) ) . array ( ) . typed ( )
503+ }
498504}
499505
500506deref ! ( ' a, StructElement <' a> => Dict <' a>, dict) ;
@@ -1247,6 +1253,12 @@ impl<'a> Page<'a> {
12471253 self . pair ( Name ( b"Metadata" ) , id) ;
12481254 self
12491255 }
1256+
1257+ /// Start writing the `/AF` array to specify the associated files of the
1258+ /// page. PDF 2.0+ or PDF/A-3.
1259+ pub fn associated_files ( & mut self ) -> TypedArray < ' _ , FileSpec > {
1260+ self . insert ( Name ( b"AF" ) ) . array ( ) . typed ( )
1261+ }
12501262}
12511263
12521264deref ! ( ' a, Page <' a> => Dict <' a>, dict) ;
0 commit comments