handle newlines before inline images and support larger data streams in brute force search

This commit is contained in:
Eliot Jones
2019-12-18 12:02:07 +00:00
parent 1fb416eee3
commit dab64ec406
2 changed files with 6 additions and 1 deletions

View File

@@ -210,7 +210,7 @@
{
// The ID operator should be followed by a single white-space character, and the next character is interpreted
// as the first byte of image data.
if (inputBytes.CurrentByte != ' ')
if (!ReadHelper.IsWhitespace(inputBytes.CurrentByte))
{
throw new PdfDocumentFormatException($"No whitespace character following the image data (ID) operator. Position: {inputBytes.CurrentOffset}.");
}