Handle strings in inline image dictionaries

We need to use token.getRawValue, not token.getValue
This commit is contained in:
Jay Berkenbilt 2021-01-31 07:47:43 -05:00
parent 178f995fc2
commit 9c9ce64eec
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2021-01-31 Jay Berkenbilt <ejb@ql.org>
* Bug fix: properly handle strings if they appear in inline image
dictionaries while externalizing inline images.
2021-01-30 Jay Berkenbilt <ejb@ql.org>
* Add examples/pdf-name-number-tree.cc to illustrate new

View File

@ -281,8 +281,8 @@ InlineImageTracker::handleToken(QPDFTokenizer::Token const& token)
}
else
{
bi_str += token.getValue();
dict_str += token.getValue();
bi_str += token.getRawValue();
dict_str += token.getRawValue();
}
}
else if (token == QPDFTokenizer::Token(QPDFTokenizer::tt_word, "BI"))