Showing
1 changed file
with
9 additions
and
5 deletions
| @@ -137,16 +137,20 @@ class PdfOutput { | @@ -137,16 +137,20 @@ class PdfOutput { | ||
| 137 | xref.outputCompressed(rootID!, os, params); | 137 | xref.outputCompressed(rootID!, os, params); |
| 138 | } else { | 138 | } else { |
| 139 | assert(() { | 139 | assert(() { |
| 140 | - os.putComment(''); | ||
| 141 | - os.putComment('-' * 78); | 140 | + if (verbose) { |
| 141 | + os.putComment(''); | ||
| 142 | + os.putComment('-' * 78); | ||
| 143 | + } | ||
| 142 | return true; | 144 | return true; |
| 143 | }()); | 145 | }()); |
| 144 | xref.output(os); | 146 | xref.output(os); |
| 145 | 147 | ||
| 146 | // the trailer object | 148 | // the trailer object |
| 147 | assert(() { | 149 | assert(() { |
| 148 | - os.putComment(''); | ||
| 149 | - os.putComment('-' * 78); | 150 | + if (verbose) { |
| 151 | + os.putComment(''); | ||
| 152 | + os.putComment('-' * 78); | ||
| 153 | + } | ||
| 150 | return true; | 154 | return true; |
| 151 | }()); | 155 | }()); |
| 152 | os.putString('trailer\n'); | 156 | os.putString('trailer\n'); |
| @@ -155,7 +159,7 @@ class PdfOutput { | @@ -155,7 +159,7 @@ class PdfOutput { | ||
| 155 | } | 159 | } |
| 156 | 160 | ||
| 157 | assert(() { | 161 | assert(() { |
| 158 | - if (rootID!.pdfDocument.verbose) { | 162 | + if (verbose) { |
| 159 | os.putComment(''); | 163 | os.putComment(''); |
| 160 | os.putComment('-' * 78); | 164 | os.putComment('-' * 78); |
| 161 | } | 165 | } |
-
Please register or login to post a comment