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-03-19 14:13:15 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
53252cddd2b887e744825b3bc8d8438329363b47
53252cdd
1 parent
6eaaf507
Add missing final "~>" to Ascii85 encoder
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
pdf/CHANGELOG.md
pdf/lib/src/pdf/ascii85.dart
pdf/CHANGELOG.md
View file @
53252cd
...
...
@@ -4,6 +4,7 @@
-
Fix missing endobj with compressed xref
-
Fix missing smask subtype
-
Add missing final "~>" to Ascii85 encoder
## 3.7.2
...
...
pdf/lib/src/pdf/ascii85.dart
View file @
53252cd
...
...
@@ -21,7 +21,7 @@ import 'dart:typed_data';
class
Ascii85Encoder
extends
Converter
<
Uint8List
,
Uint8List
>
{
@override
Uint8List
convert
(
Uint8List
input
)
{
final
output
=
Uint8List
(
_maxEncodedLen
(
input
.
length
));
final
output
=
Uint8List
(
_maxEncodedLen
(
input
.
length
)
+
2
);
var
outputOffset
=
0
;
var
inputOffset
=
0
;
...
...
@@ -80,6 +80,10 @@ class Ascii85Encoder extends Converter<Uint8List, Uint8List> {
outputOffset
+=
5
;
}
// Add final "~>"
output
[
outputOffset
++]
=
126
;
output
[
outputOffset
++]
=
62
;
return
output
.
sublist
(
0
,
outputOffset
);
}
...
...
Please
register
or
login
to post a comment