summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2019-01-31 05:24:09 +0100
committerJay Berkenbilt <ejb@ql.org>2019-01-31 16:38:10 +0100
commit1eb35a355f12f2edf69868b749f58c08ef58f1c6 (patch)
tree1c4d95f68ebf2cc9e3ec3145ea27803745b479df /include
parent2b6c79bcaeee0548f3d7291876eb3821e14b8227 (diff)
downloadqpdf-1eb35a355f12f2edf69868b749f58c08ef58f1c6.tar.zst
Exclude space after ID in image data
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFTokenizer.hh24
1 files changed, 13 insertions, 11 deletions
diff --git a/include/qpdf/QPDFTokenizer.hh b/include/qpdf/QPDFTokenizer.hh
index 424ac099..b6adeb29 100644
--- a/include/qpdf/QPDFTokenizer.hh
+++ b/include/qpdf/QPDFTokenizer.hh
@@ -174,17 +174,19 @@ class QPDFTokenizer
size_t max_len = 0);
// Calling this method puts the tokenizer in a state for reading
- // inline images. In that state, it will return all data up to and
- // including the next EI token. After you call this method, the
- // next call to readToken (or the token created next time getToken
- // returns true) will either be tt_inline_image or tt_bad. This is
- // the only way readToken returns a tt_inline_image token. The
- // version of this method that takes a PointerHolder<InputSource>
- // does a better job of locating the end of the inline image and
- // should be used whenever the input source is available. It
- // preserves both tell() and getLastOffset(). The version without
- // the input source will always end the inline image the first
- // time it sees something that looks like an EI operator.
+ // inline images. You should call this method after reading the
+ // character following the ID operator. In that state, it will
+ // return all data up to and including the next EI token. After
+ // you call this method, the next call to readToken (or the token
+ // created next time getToken returns true) will either be
+ // tt_inline_image or tt_bad. This is the only way readToken
+ // returns a tt_inline_image token. The version of this method
+ // that takes a PointerHolder<InputSource> does a better job of
+ // locating the end of the inline image and should be used
+ // whenever the input source is available. It preserves both
+ // tell() and getLastOffset(). The version without the input
+ // source will always end the inline image the first time it sees
+ // something that looks like an EI operator.
QPDF_DLL
void expectInlineImage(PointerHolder<InputSource> input);
QPDF_DLL