From 4ffd4a0639659f083c4de1c82ffe9d325c77b078 Mon Sep 17 00:00:00 2001 From: Jakub Melka Date: Fri, 17 Nov 2023 18:49:00 +0100 Subject: [PATCH] Issue #109: No text, font. Parts missing --- Pdf4QtLib/sources/pdfparser.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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.