Showing
1 changed file
with
2 additions
and
1 deletions
@@ -186,7 +186,8 @@ class PdfXrefTable extends PdfDataType { | @@ -186,7 +186,8 @@ class PdfXrefTable extends PdfDataType { | ||
186 | params['/Index'] = PdfArray.fromNum(blocks); | 186 | params['/Index'] = PdfArray.fromNum(blocks); |
187 | } | 187 | } |
188 | 188 | ||
189 | - final bytes = (math.log(offset) ~/ math.ln2) ~/ 8; | 189 | + final bytes = ((math.log(offset) / math.ln2).ceil() / 8).ceil(); |
190 | + print(bytes); | ||
190 | final w = [1, bytes, 1]; | 191 | final w = [1, bytes, 1]; |
191 | params['/W'] = PdfArray.fromNum(w); | 192 | params['/W'] = PdfArray.fromNum(w); |
192 | final wl = w.reduce((a, b) => a + b); | 193 | final wl = w.reduce((a, b) => a + b); |
-
Please register or login to post a comment