Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
dart_pdf
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
David PHAM-VAN
2024-07-18 08:03:12 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b379cade7adb57a42262109681e57fd922bf3400
b379cade
1 parent
7e455228
Fix formatting
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
pdf/lib/src/pdf/obj/catalog.dart
pdf/lib/src/pdf/obj/catalog.dart
View file @
b379cad
...
...
@@ -146,9 +146,7 @@ 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
))
{
...
...
@@ -156,9 +154,8 @@ class PdfCatalog extends PdfObject<PdfDict> {
}
}
if
(
fontRefs
.
isNotEmpty
)
{
acroForm
[
'/DR'
]
=
PdfDict
.
values
(
// "Document Resources"
{
'/Font'
:
fontRefs
}
);
acroForm
[
'/DR'
]
=
PdfDict
.
values
(
// "Document Resources"
{
'/Font'
:
fontRefs
});
}
}
}
...
...
Please
register
or
login
to post a comment