From 1eb35a355f12f2edf69868b749f58c08ef58f1c6 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Wed, 30 Jan 2019 23:24:09 -0500 Subject: Exclude space after ID in image data --- include/qpdf/QPDFTokenizer.hh | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'include') 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 - // 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 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 input); QPDF_DLL -- cgit v1.2.3-54-g00ecf