From eb49e07c0afc1b30b53d3ae2849c824c9407f00d Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Thu, 31 Jan 2019 15:51:52 -0500 Subject: Make inline image token exactly contain the image data Do not include the trailing EI, and handle cases where EI is not preceded by a delimiter. Such cases have been seen in the wild. --- ChangeLog | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 8b6e2d73..120ecd2f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -26,10 +26,14 @@ * Very low-level QPDFTokenizer API now includes an expectInlineImage method that takes an input stream, enabling it - to locate an inline image's EI operator better. This is called + to locate an inline image's EI operator better. When this method + is called, the inline image token returned will not contain the EI + operator and will contain correct image data. This is called automatically everywhere within the qpdf library. Most user code will never have to use the low-level tokenizer API. If you use - Pl_QPDFTokenizer, this will be done automatically for you. + Pl_QPDFTokenizer, this will be done automatically for you. If you + use the low-level API and call expectInlineImage, you should call + the new version. 2019-01-29 Jay Berkenbilt -- cgit v1.2.3-54-g00ecf