handle missing whitespaces before the start of the object #88

This commit is contained in:
Eliot Jones
2019-12-09 12:24:20 +00:00
parent 75a6260501
commit f2ead37134

View File

@@ -68,6 +68,7 @@
{
inObject = false;
endobjFound = true;
loopProtection = 0;
for (int i = 0; i < "endobj".Length; i++)
{
@@ -133,14 +134,6 @@
bytes.Seek(offset);
}
if (!ReadHelper.IsWhitespace(bytes.CurrentByte))
{
if (bytes.CurrentByte != (byte)'j' && bytes.CurrentByte != (byte)'m')
{
continue;
}
}
var obj = long.Parse(objectNumberBytes.ToString(), CultureInfo.InvariantCulture);
var generation = int.Parse(generationBytes.ToString(), CultureInfo.InvariantCulture);