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-05-05 17:12:17 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
86c5fa39bd3b74e39d3fd09125b8d39b00caa68f
86c5fa39
1 parent
ef8be8db
Fix exif orientation crash
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
pdf/CHANGELOG.md
pdf/lib/src/exif.dart
pdf/CHANGELOG.md
View file @
86c5fa3
...
...
@@ -6,6 +6,7 @@
-
Add curved LineDataSet Chart
-
Fix PdfColors.fromHex()
-
Update Barcode library to 1.9.0
-
Fix exif orientation crash
## 1.7.1
...
...
pdf/lib/src/exif.dart
View file @
86c5fa3
...
...
@@ -96,10 +96,17 @@ class PdfJpegInfo {
?
null
:
utf8
.
decode
(
tags
[
PdfExifTag
.
FlashpixVersion
]);
PdfImageOrientation
get
orientation
=>
tags
==
null
||
tags
[
PdfExifTag
.
Orientation
]
==
null
?
PdfImageOrientation
.
topLeft
:
PdfImageOrientation
.
values
[
tags
[
PdfExifTag
.
Orientation
]
-
1
];
PdfImageOrientation
get
orientation
{
if
(
tags
==
null
||
tags
[
PdfExifTag
.
Orientation
]
==
null
)
{
return
PdfImageOrientation
.
topLeft
;
}
try
{
return
PdfImageOrientation
.
values
[
tags
[
PdfExifTag
.
Orientation
]
-
1
];
}
on
RangeError
{
return
PdfImageOrientation
.
topLeft
;
}
}
double
get
xResolution
=>
tags
==
null
||
tags
[
PdfExifTag
.
XResolution
]
==
null
?
null
...
...
Please
register
or
login
to post a comment