Fixes on hexstring parsing of ParseString

This commit is contained in:
2016-06-20 11:39:10 +02:00
parent 3b0bdf8a66
commit 6e8f58e2e1

View File

@@ -547,10 +547,11 @@ namespace VAR.PdfTools
{
byte character = PeekChar();
if (character == '>') { break; }
byte nextCharacter = PeekNextChar(1);
NextChar();
byte nextCharacter = PeekChar();
NextChar();
byte realChar = (byte)(ByteHexValue(character) * 16 + ByteHexValue(nextCharacter));
sbString.Append((Char)realChar);
NextChar();
} while (IsEndOfStream() == false);
NextChar();