Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
DavBfr committed Jul 18, 2024
1 parent 7e45522 commit b379cad
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions pdf/lib/src/pdf/obj/catalog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -146,19 +146,16 @@ class PdfCatalog extends PdfObject<PdfDict> {
if (w.annot is PdfTextField) {
// collect textfield font references
PdfTextField tf = w.annot as PdfTextField;
fontRefs.addAll(PdfDict.values(
{tf.font.name: tf.font.ref()}
));
fontRefs.addAll(PdfDict.values({tf.font.name: tf.font.ref()}));
}
final ref = w.ref();
if (!fields.values.contains(ref)) {
fields.add(ref);
}
}
if (fontRefs.isNotEmpty) {
acroForm['/DR'] = PdfDict.values( // "Document Resources"
{'/Font': fontRefs}
);
acroForm['/DR'] = PdfDict.values(// "Document Resources"
{'/Font': fontRefs});
}
}
}
Expand Down

0 comments on commit b379cad

Please sign in to comment.