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
2022-05-12 10:26:30 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a5b46ed58da29f0bc79706cda34eee25ddaa084b
a5b46ed5
1 parent
bae0794a
Fix compressed xref
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
pdf/lib/src/pdf/xref.dart
pdf/lib/src/pdf/xref.dart
View file @
a5b46ed
...
...
@@ -186,7 +186,8 @@ class PdfXrefTable extends PdfDataType {
params
[
'/Index'
]
=
PdfArray
.
fromNum
(
blocks
);
}
final
bytes
=
(
math
.
log
(
offset
)
~/
math
.
ln2
)
~/
8
;
final
bytes
=
((
math
.
log
(
offset
)
/
math
.
ln2
).
ceil
()
/
8
).
ceil
();
print
(
bytes
);
final
w
=
[
1
,
bytes
,
1
];
params
[
'/W'
]
=
PdfArray
.
fromNum
(
w
);
final
wl
=
w
.
reduce
((
a
,
b
)
=>
a
+
b
);
...
...
Please
register
or
login
to post a comment