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-02-01 08:09:33 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a4605b33fbc5b2eb1999c231dc83136164d1a04e
a4605b33
1 parent
bfc6e6e7
Fix missing chars with pdfjs
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
5 deletions
pdf/CHANGELOG.md
pdf/lib/src/pdf/font/ttf_writer.dart
pdf/lib/src/pdf/obj/unicode_cmap.dart
pdf/pubspec.yaml
printing/pubspec.yaml
pdf/CHANGELOG.md
View file @
a4605b3
# Changelog
## 3.7.1
-
Fix missing chars with pdfjs
## 3.7.0
-
Fix imports for Dart 2.15
...
...
pdf/lib/src/pdf/font/ttf_writer.dart
View file @
a4605b3
...
...
@@ -76,8 +76,12 @@ class TtfWriter {
continue
;
}
final
glyph
=
ttf
.
readGlyph
(
ttf
.
charToGlyphIndexMap
[
chars
[
index
]]
??
0
).
copy
();
final
glyphIndex
=
ttf
.
charToGlyphIndexMap
[
chars
[
index
]]
??
0
;
if
(
glyphIndex
>=
ttf
.
glyphOffsets
.
length
)
{
continue
;
}
final
glyph
=
ttf
.
readGlyph
(
glyphIndex
).
copy
();
for
(
final
g
in
glyph
.
compounds
)
{
compounds
[
g
]
=
-
1
;
}
...
...
pdf/lib/src/pdf/obj/unicode_cmap.dart
View file @
a4605b3
...
...
@@ -23,7 +23,7 @@ class PdfUnicodeCmap extends PdfObjectStream {
PdfUnicodeCmap
(
PdfDocument
pdfDocument
,
this
.
protect
)
:
super
(
pdfDocument
);
/// List of characters
final
cmap
=
<
int
>[];
final
cmap
=
<
int
>[
0
];
/// Protects the text from being "seen" by the PDF reader.
final
bool
protect
;
...
...
pdf/pubspec.yaml
View file @
a4605b3
...
...
@@ -3,7 +3,7 @@ description: A pdf producer for Dart. It can create pdf files for both web or fl
homepage
:
https://github.com/DavBfr/dart_pdf/tree/master/pdf
repository
:
https://github.com/DavBfr/dart_pdf
issue_tracker
:
https://github.com/DavBfr/dart_pdf/issues
version
:
3.7.
0
version
:
3.7.
1
environment
:
sdk
:
"
>=2.12.0
<3.0.0"
...
...
printing/pubspec.yaml
View file @
a4605b3
...
...
@@ -22,7 +22,7 @@ dependencies:
image
:
"
>=3.0.1
<4.0.0"
js
:
^0.6.3
meta
:
"
>=1.3.0
<2.0.0"
pdf
:
^3.7.
0
pdf
:
^3.7.
1
plugin_platform_interface
:
^2.0.0
dev_dependencies
:
...
...
Please
register
or
login
to post a comment