Showing
1 changed file
with
7 additions
and
0 deletions
| @@ -28,6 +28,12 @@ class Document { | @@ -28,6 +28,12 @@ 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 | + if (title != null || | ||
| 32 | + author != null || | ||
| 33 | + creator != null || | ||
| 34 | + subject != null || | ||
| 35 | + keywords != null || | ||
| 36 | + producer != null) { | ||
| 31 | document.info = PdfInfo(document, | 37 | document.info = PdfInfo(document, |
| 32 | title: title, | 38 | title: title, |
| 33 | author: author, | 39 | author: author, |
| @@ -36,6 +42,7 @@ class Document { | @@ -36,6 +42,7 @@ class Document { | ||
| 36 | keywords: keywords, | 42 | keywords: keywords, |
| 37 | producer: producer); | 43 | producer: producer); |
| 38 | } | 44 | } |
| 45 | + } | ||
| 39 | 46 | ||
| 40 | static bool debug = false; | 47 | static bool debug = false; |
| 41 | 48 |
-
Please register or login to post a comment