David PHAM-VAN

Fix Compressed Cross-Reference ID

1 # Changelog 1 # Changelog
2 2
  3 +## 3.8.2
  4 +
  5 +- Fix Compressed Cross-Reference ID
  6 +- Fix exif orientation [deepak786]
  7 +
3 ## 3.8.1 8 ## 3.8.1
4 9
5 - Fix large PDF generation on web with compressed xref 10 - Fix large PDF generation on web with compressed xref
@@ -152,14 +152,15 @@ class PdfXrefTable extends PdfDataType { @@ -152,14 +152,15 @@ class PdfXrefTable extends PdfDataType {
152 152
153 /// Output a compressed cross-reference table 153 /// Output a compressed cross-reference table
154 void outputCompressed(PdfObject object, PdfStream s, PdfDict params) { 154 void outputCompressed(PdfObject object, PdfStream s, PdfDict params) {
155 - // Write this object too  
156 - final id = offsets.last.id + 1;  
157 final offset = s.offset; 155 final offset = s.offset;
158 - offsets.add(PdfXref(id, offset));  
159 156
160 // Sort all references 157 // Sort all references
161 offsets.sort((a, b) => a.id.compareTo(b.id)); 158 offsets.sort((a, b) => a.id.compareTo(b.id));
162 159
  160 + // Write this object too
  161 + final id = offsets.last.id + 1;
  162 + offsets.add(PdfXref(id, offset));
  163 +
163 params['/Type'] = const PdfName('/XRef'); 164 params['/Type'] = const PdfName('/XRef');
164 params['/Size'] = PdfNum(id + 1); 165 params['/Size'] = PdfNum(id + 1);
165 166
1 # Changelog 1 # Changelog
2 2
  3 +# 5.9.2
  4 +
  5 +- Added mounted check for setState in printing>preview>raster [Julius Alibrown]
  6 +
3 # 5.9.1 7 # 5.9.1
4 8
5 - iOS: Set cutLength to be currentSize.height [Liam Downey] 9 - iOS: Set cutLength to be currentSize.height [Liam Downey]