Fixes on hexstring parsing of ParseString
This commit is contained in:
@@ -547,10 +547,11 @@ namespace VAR.PdfTools
|
|||||||
{
|
{
|
||||||
byte character = PeekChar();
|
byte character = PeekChar();
|
||||||
if (character == '>') { break; }
|
if (character == '>') { break; }
|
||||||
byte nextCharacter = PeekNextChar(1);
|
NextChar();
|
||||||
|
byte nextCharacter = PeekChar();
|
||||||
|
NextChar();
|
||||||
byte realChar = (byte)(ByteHexValue(character) * 16 + ByteHexValue(nextCharacter));
|
byte realChar = (byte)(ByteHexValue(character) * 16 + ByteHexValue(nextCharacter));
|
||||||
sbString.Append((Char)realChar);
|
sbString.Append((Char)realChar);
|
||||||
NextChar();
|
|
||||||
} while (IsEndOfStream() == false);
|
} while (IsEndOfStream() == false);
|
||||||
NextChar();
|
NextChar();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user