diff options
author | Jay Berkenbilt <ejb@ql.org> | 2021-03-01 23:34:47 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2021-03-03 23:05:49 +0100 |
commit | a15ec6967dd3312223a6ab7d4198655234e1a4bf (patch) | |
tree | 1b0ebb6a44c4c527d6594c9c79fe9b2bef065299 /include | |
parent | 1bb209a9bf5ade164cf1ba7c3b9399be70c45c24 (diff) | |
download | qpdf-a15ec6967dd3312223a6ab7d4198655234e1a4bf.tar.zst |
Enhancements to ParserCallbacks
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QPDFObjectHandle.hh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/qpdf/QPDFObjectHandle.hh b/include/qpdf/QPDFObjectHandle.hh index 356eb4e2..e0635842 100644 --- a/include/qpdf/QPDFObjectHandle.hh +++ b/include/qpdf/QPDFObjectHandle.hh @@ -224,7 +224,16 @@ class QPDFObjectHandle virtual void handleObject( QPDFObjectHandle, size_t offset, size_t length); - virtual void handleEOF() = 0; + // handleWarning is called if a warning was issued during the + // parsing of the most recent object. There's no good way to + // get information about the warning, but implementors can use + // this to become aware that there was some problem while + // parsing this content stream. + QPDF_DLL + virtual void handleWarning(); + + QPDF_DLL + virtual void handleEOF(); // Override this if you want to know the full size of the // contents, possibly after concatenation of multiple streams. |