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
2020-03-19 18:37:08 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
316eb9c68d7cac04f63192d2ef19ac815add289f
316eb9c6
1 parent
abd2f5c1
Add an exception if a jpeg image is not a supported format
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
pdf/CHANGELOG.md
pdf/lib/src/exif.dart
pdf/CHANGELOG.md
View file @
316eb9c
...
...
@@ -13,6 +13,7 @@
-
Fix Text decoration placements
-
Improve image buffer management
-
Optimize memory footprint
-
Add an exception if a jpeg image is not a supported format
## 1.5.0
...
...
pdf/lib/src/exif.dart
View file @
316eb9c
...
...
@@ -64,6 +64,10 @@ class PdfJpegInfo {
offset
+=
len
-
2
;
}
if
(
height
==
null
)
{
throw
'Unable to find a Jpeg image in the file'
;
}
final
Map
<
PdfExifTag
,
dynamic
>
tags
=
_findExifInJpeg
(
buffer
);
return
PdfJpegInfo
.
_
(
width
,
height
,
color
,
tags
);
...
...
Please
register
or
login
to post a comment