Fix parsing of hex strings
This commit is contained in:
parent
54d86cf25b
commit
c77a9c052a
|
@ -161,6 +161,7 @@ struct pdf_lexer {
|
||||||
buf.clear();
|
buf.clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
p++;
|
||||||
if (!buf.empty()) value += char(std::stoi(buf + '0', nullptr, 16));
|
if (!buf.empty()) value += char(std::stoi(buf + '0', nullptr, 16));
|
||||||
return {pdf_object::STRING, value};
|
return {pdf_object::STRING, value};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue