summaryrefslogtreecommitdiffstats
path: root/manual
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2019-08-23 01:16:25 +0200
committerJay Berkenbilt <ejb@ql.org>2019-08-23 04:54:29 +0200
commit3f1ab640669ac493f1b2985b70322dba7c037ac9 (patch)
tree0da24ed76b73a365455c78f3f9a75f66b92cf8f6 /manual
parent4b2e72c4cd7dc9bc17ad78ca983ff884c1e1ee69 (diff)
downloadqpdf-3f1ab640669ac493f1b2985b70322dba7c037ac9.tar.zst
Pass offset and length to ParserCallbacks::handleObject
Diffstat (limited to 'manual')
-rw-r--r--manual/qpdf-manual.xml19
1 files changed, 19 insertions, 0 deletions
diff --git a/manual/qpdf-manual.xml b/manual/qpdf-manual.xml
index edf61bdb..db2a54fa 100644
--- a/manual/qpdf-manual.xml
+++ b/manual/qpdf-manual.xml
@@ -4491,6 +4491,25 @@ print "\n";
</listitem>
<listitem>
<para>
+ When parsing content streams with
+ <classname>QPDFObjectHandle::ParserCallbacks</classname>, in
+ place of the method
+ <function>handleObject(QPDFObjectHandle)</function>, the
+ developer may override
+ <function>handleObject(QPDFObjectHandle, size_t offset,
+ size_t length)</function>. If this method is defined, it
+ will be invoked with the object along with its offset and
+ length within the overall contents being parsed. Intervening
+ spaces and comments are not included in offset and length.
+ Additionally, a new method
+ <function>contentSize(size_t)</function> may be implemented.
+ If present, it will be called prior to the first call to
+ <function>handleObject</function> with the total size in
+ bytes of the combined contents.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
The underlying implementation of QPDF arrays has been
enhanced to be much more memory efficient when dealing with
arrays with lots of nulls. This enables qpdf to use