diff options
author | Jay Berkenbilt <ejb@ql.org> | 2019-08-23 01:16:25 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2019-08-23 04:54:29 +0200 |
commit | 3f1ab640669ac493f1b2985b70322dba7c037ac9 (patch) | |
tree | 0da24ed76b73a365455c78f3f9a75f66b92cf8f6 /ChangeLog | |
parent | 4b2e72c4cd7dc9bc17ad78ca983ff884c1e1ee69 (diff) | |
download | qpdf-3f1ab640669ac493f1b2985b70322dba7c037ac9.tar.zst |
Pass offset and length to ParserCallbacks::handleObject
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -1,5 +1,19 @@ 2019-08-22 Jay Berkenbilt <ejb@ql.org> + * In QPDFObjectHandle::ParserCallbacks, in addition to + handleObject(QPDFObjectHandle), allow developers to override + handleObject(QPDFObjectHandle, size_t offset, size_t length). If + this method appears instead, it is called with the offset of the + object in the content stream (which may be concatenated from an + array of streams) and the length of the object. Intervening + whitespace and comments are not included in offset and length. + + * Add method + QPDFObjectHandle::ParserCallbacks::contentSize(size_t). If + defined, it is called by the content stream parser before the + first call to handleObject, and the argument is the total size in + bytes of the content streams. + * Add QPDFObjectHandle::isDirectNull() -- a const method that allows determining whether an object is a literal null without attempting to resolve it. |