diff options
author | m-holger <m-holger@kubitscheck.org> | 2022-08-02 14:12:17 +0200 |
---|---|---|
committer | m-holger <m-holger@kubitscheck.org> | 2022-08-31 23:46:09 +0200 |
commit | 7248cab71b69efe1e5efa3f1400d4d3970271a77 (patch) | |
tree | e5099c59aef6a19a91425310d73aa4472b31c0bd /include | |
parent | bd300be08d94add92657aef1d46afd100459302b (diff) | |
download | qpdf-7248cab71b69efe1e5efa3f1400d4d3970271a77.tar.zst |
Add class QPDF_Unresolved
Allow QPDFObjectHandle::obj to be set prior resolving object.
ot_unresolved has been appended to the list object types in order to
preserve the output of existing test cases.
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/Constants.h | 2 | ||||
-rw-r--r-- | include/qpdf/QPDFObject.hh | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/qpdf/Constants.h b/include/qpdf/Constants.h index 5d2113bd..cf6bdaef 100644 --- a/include/qpdf/Constants.h +++ b/include/qpdf/Constants.h @@ -82,6 +82,8 @@ enum qpdf_object_type_e { /* Additional object types that can occur in content streams */ ot_operator, ot_inlineimage, + /* Object types internal to qpdf */ + ot_unresolved, /* NOTE: if adding to this list, update QPDFObject.hh */ }; diff --git a/include/qpdf/QPDFObject.hh b/include/qpdf/QPDFObject.hh index eb7c4b90..8b6f7403 100644 --- a/include/qpdf/QPDFObject.hh +++ b/include/qpdf/QPDFObject.hh @@ -61,6 +61,7 @@ class QPDFObject static constexpr object_type_e ot_stream = ::ot_stream; static constexpr object_type_e ot_operator = ::ot_operator; static constexpr object_type_e ot_inlineimage = ::ot_inlineimage; + static constexpr object_type_e ot_unresolved = ::ot_unresolved; virtual ~QPDFObject() = default; virtual std::shared_ptr<QPDFObject> shallowCopy() = 0; |