Skip to content

Commit

Permalink
PDF handler: consider entities in 'unicode' attributes
Browse files Browse the repository at this point in the history
(fixes #257)
  • Loading branch information
mgieseki committed Oct 7, 2024
1 parent f14dff5 commit 4954db4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PDFHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ void PDFHandler::doFillText (XMLElement *trcFillTextElement) {
// determine code point of current character
string utf8;
if (charElement->hasAttribute("unicode"))
utf8 = parse_attr_value<string>(charElement, "unicode");
utf8 = to_utf8(parse_attr_value<string>(charElement, "unicode"));
if (utf8.empty())
utf8 = compose_utf8_char(charElement, glyph);
if (glyph == 0 || utf8.empty())
Expand Down

0 comments on commit 4954db4

Please sign in to comment.