Showing
1 changed file
with
14 additions
and
7 deletions
| @@ -28,13 +28,20 @@ class Document { | @@ -28,13 +28,20 @@ class Document { | ||
| 28 | String keywords, | 28 | String keywords, |
| 29 | String producer}) | 29 | String producer}) |
| 30 | : document = PdfDocument(pageMode: pageMode, deflate: deflate) { | 30 | : document = PdfDocument(pageMode: pageMode, deflate: deflate) { |
| 31 | - document.info = PdfInfo(document, | ||
| 32 | - title: title, | ||
| 33 | - author: author, | ||
| 34 | - creator: creator, | ||
| 35 | - subject: subject, | ||
| 36 | - keywords: keywords, | ||
| 37 | - producer: producer); | 31 | + if (title != null || |
| 32 | + author != null || | ||
| 33 | + creator != null || | ||
| 34 | + subject != null || | ||
| 35 | + keywords != null || | ||
| 36 | + producer != null) { | ||
| 37 | + document.info = PdfInfo(document, | ||
| 38 | + title: title, | ||
| 39 | + author: author, | ||
| 40 | + creator: creator, | ||
| 41 | + subject: subject, | ||
| 42 | + keywords: keywords, | ||
| 43 | + producer: producer); | ||
| 44 | + } | ||
| 38 | } | 45 | } |
| 39 | 46 | ||
| 40 | static bool debug = false; | 47 | static bool debug = false; |
-
Please register or login to post a comment