|
@@ -316,7 +316,7 @@ Value Parser::parse_value()
|
|
auto dict = parse_dict();
|
|
auto dict = parse_dict();
|
|
if (!dict)
|
|
if (!dict)
|
|
return {};
|
|
return {};
|
|
- if (m_reader.matches("stream\n"))
|
|
|
|
|
|
+ if (m_reader.matches("stream"))
|
|
return parse_stream(dict.release_nonnull());
|
|
return parse_stream(dict.release_nonnull());
|
|
return dict;
|
|
return dict;
|
|
}
|
|
}
|
|
@@ -371,6 +371,9 @@ RefPtr<IndirectValue> Parser::parse_indirect_value(int index, int generation)
|
|
if (!m_reader.matches("endobj"))
|
|
if (!m_reader.matches("endobj"))
|
|
return {};
|
|
return {};
|
|
|
|
|
|
|
|
+ consume(6);
|
|
|
|
+ consume_whitespace();
|
|
|
|
+
|
|
return make_object<IndirectValue>(index, generation, value);
|
|
return make_object<IndirectValue>(index, generation, value);
|
|
}
|
|
}
|
|
|
|
|