Commit 9c9ce64eecdb90f66fa532b155d45784d0f33c34
1 parent
178f995f
Handle strings in inline image dictionaries
We need to use token.getRawValue, not token.getValue
Showing
2 changed files
with
7 additions
and
2 deletions
ChangeLog
| 1 | +2021-01-31 Jay Berkenbilt <ejb@ql.org> | ||
| 2 | + | ||
| 3 | + * Bug fix: properly handle strings if they appear in inline image | ||
| 4 | + dictionaries while externalizing inline images. | ||
| 5 | + | ||
| 1 | 2021-01-30 Jay Berkenbilt <ejb@ql.org> | 6 | 2021-01-30 Jay Berkenbilt <ejb@ql.org> |
| 2 | 7 | ||
| 3 | * Add examples/pdf-name-number-tree.cc to illustrate new | 8 | * Add examples/pdf-name-number-tree.cc to illustrate new |
libqpdf/QPDFPageObjectHelper.cc
| @@ -281,8 +281,8 @@ InlineImageTracker::handleToken(QPDFTokenizer::Token const& token) | @@ -281,8 +281,8 @@ InlineImageTracker::handleToken(QPDFTokenizer::Token const& token) | ||
| 281 | } | 281 | } |
| 282 | else | 282 | else |
| 283 | { | 283 | { |
| 284 | - bi_str += token.getValue(); | ||
| 285 | - dict_str += token.getValue(); | 284 | + bi_str += token.getRawValue(); |
| 285 | + dict_str += token.getRawValue(); | ||
| 286 | } | 286 | } |
| 287 | } | 287 | } |
| 288 | else if (token == QPDFTokenizer::Token(QPDFTokenizer::tt_word, "BI")) | 288 | else if (token == QPDFTokenizer::Token(QPDFTokenizer::tt_word, "BI")) |