overleaf/services/clsi/test/unit/lib/snapshots/multibib_bibliography/XrefTable.json
Jakob Ackermann 294088fb27 [ContentCacheManager] use PDF.js Xref table instead of stream detection (#242)
* make the content cache manager tests configurable

* extend stream content in unit tests

* [ContentCacheManagerTests] prepare for full object caching

* filesystem stream for pdfjs

* working??

* cleaning up

* handle overflow

* [misc] install pdfjs-dist

* [misc] move pdfjs code into app/lib/ and scripts/, also use CamelCase

* [misc] abstract the file loading and parsing of xRef tables into helper

* [misc] pdfjsTests: add snapshot based tests for the Xref table parser

* [misc] FSStream: throw proper error and drop commented code

* [misc] FSStream: integrate throwing of MissingDataException into getter

* [misc] pdfjs: fix eslint errors

* [misc] pdfjs: run format_fix

* [misc] pdfjs: allocate very small non empty dummy buffers explicitly

* [misc] install @overleaf/o-error

* [ContentCacheManager] use PDF.js Xref table instead of stream detection

Co-Authored-By: Brian Gough <brian.gough@overleaf.com>

* [pdfjs] parseXrefTable: handle empty PDF files gracefully

Co-authored-by: Brian Gough <brian.gough@overleaf.com>
2021-05-31 09:20:25 +01:00

133 lines
No EOL
1.5 KiB
JSON

[
{
"offset": 0,
"gen": 255,
"free": true
},
{
"offset": 6,
"gen": 1
},
{
"offset": 6,
"gen": 0
},
{
"offset": 15,
"gen": 0,
"uncompressed": true
},
{
"offset": 6,
"gen": 14
},
{
"offset": 6,
"gen": 15
},
{
"offset": 40591,
"gen": 0,
"uncompressed": true
},
{
"offset": 6,
"gen": 17
},
{
"offset": 6,
"gen": 3
},
{
"offset": 6,
"gen": 2
},
{
"offset": 290,
"gen": 0,
"uncompressed": true
},
{
"offset": 6,
"gen": 16
},
{
"offset": 6,
"gen": 5
},
{
"offset": 6,
"gen": 4
},
{
"offset": 595,
"gen": 0,
"uncompressed": true
},
{
"offset": 6,
"gen": 7
},
{
"offset": 6,
"gen": 6
},
{
"offset": 844,
"gen": 0,
"uncompressed": true
},
{
"offset": 6,
"gen": 8
},
{
"offset": 6,
"gen": 9
},
{
"offset": 6,
"gen": 10
},
{
"offset": 1107,
"gen": 0,
"uncompressed": true
},
{
"offset": 6,
"gen": 11
},
{
"offset": 11816,
"gen": 0,
"uncompressed": true
},
{
"offset": 6,
"gen": 12
},
{
"offset": 28180,
"gen": 0,
"uncompressed": true
},
{
"offset": 6,
"gen": 13
},
{
"offset": 6,
"gen": 18
},
{
"offset": 40344,
"gen": 0,
"uncompressed": true
},
{
"offset": 41851,
"gen": 0,
"uncompressed": true
}
]