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
2019-04-01 19:44:15 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4be21f586f266ec6bceb3ae13a46d3104bfe1c06
4be21f58
1 parent
a23ef069
Do not create info object if not needed
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
pdf/lib/widgets/document.dart
pdf/lib/widgets/document.dart
View file @
4be21f5
...
...
@@ -28,6 +28,12 @@ class Document {
String
keywords
,
String
producer
})
:
document
=
PdfDocument
(
pageMode:
pageMode
,
deflate:
deflate
)
{
if
(
title
!=
null
||
author
!=
null
||
creator
!=
null
||
subject
!=
null
||
keywords
!=
null
||
producer
!=
null
)
{
document
.
info
=
PdfInfo
(
document
,
title:
title
,
author:
author
,
...
...
@@ -36,6 +42,7 @@ class Document {
keywords:
keywords
,
producer:
producer
);
}
}
static
bool
debug
=
false
;
...
...
Please
register
or
login
to post a comment