diff --git a/Pdf4QtLib/sources/pdfparser.cpp b/Pdf4QtLib/sources/pdfparser.cpp index 3fbdf3f..934549d 100644 --- a/Pdf4QtLib/sources/pdfparser.cpp +++ b/Pdf4QtLib/sources/pdfparser.cpp @@ -394,6 +394,11 @@ PDFLexicalAnalyzer::Token PDFLexicalAnalyzer::fetch() QByteArray decodedString = QByteArray::fromHex(hexadecimalString); return Token(TokenType::String, std::move(decodedString)); } + else if (isWhitespace(character)) + { + // Do nothing, whitespace character should be ignored + // according to the specification. + } else { // This is unexpected. Invalid character in hexadecimal string.