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-11-22 07:44:29 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b5872635c5ce46309a6152537ca01e369355a1ac
b5872635
1 parent
5234c53e
Fix PdfOutlineMode enum
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
pdf/CHANGELOG.md
pdf/lib/src/outline.dart
pdf/CHANGELOG.md
View file @
b587263
...
...
@@ -7,6 +7,7 @@
-
Add document outline support
-
Update analysis options
-
Fix the line cap and joint enums
-
Fix PdfOutlineMode enum
## 1.12.0
...
...
pdf/lib/src/outline.dart
View file @
b587263
...
...
@@ -18,10 +18,10 @@ part of pdf;
enum
PdfOutlineMode
{
/// When jumping to the destination, display the whole page
fit
p
age
,
fit
P
age
,
/// When jumping to the destination, display the specified region
fit
r
ect
fit
R
ect
}
enum
PdfOutlineStyle
{
...
...
@@ -48,7 +48,7 @@ class PdfOutline extends PdfObject {
this
.
rect
,
this
.
anchor
,
this
.
color
,
this
.
destMode
=
PdfOutlineMode
.
fit
p
age
,
this
.
destMode
=
PdfOutlineMode
.
fit
P
age
,
this
.
style
=
PdfOutlineStyle
.
normal
,
})
:
assert
(
anchor
==
null
||
(
dest
==
null
&&
rect
==
null
)),
assert
(
destMode
!=
null
),
...
...
@@ -114,7 +114,7 @@ class PdfOutline extends PdfObject {
final
dests
=
PdfArray
();
dests
.
add
(
dest
.
ref
());
if
(
destMode
==
PdfOutlineMode
.
fit
p
age
)
{
if
(
destMode
==
PdfOutlineMode
.
fit
P
age
)
{
dests
.
add
(
const
PdfName
(
'/Fit'
));
}
else
{
dests
.
add
(
const
PdfName
(
'/FitR'
));
...
...
Please
register
or
login
to post a comment