diff options
author | Jay Berkenbilt <ejb@ql.org> | 2012-06-21 22:14:34 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2012-06-21 22:15:09 +0200 |
commit | d1ebe30ff63a2f79da041e2d0c4718523db1beda (patch) | |
tree | 01daee6636708e83732e526cbe7c49172cc0d759 /include | |
parent | 9689f4cdcff33babafad71378fb26259f0556a99 (diff) | |
download | qpdf-d1ebe30ff63a2f79da041e2d0c4718523db1beda.tar.zst |
Add QPDFObjectHandle::shallowCopy()
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QPDFObjectHandle.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/qpdf/QPDFObjectHandle.hh b/include/qpdf/QPDFObjectHandle.hh index 3a4bff13..e431d8a7 100644 --- a/include/qpdf/QPDFObjectHandle.hh +++ b/include/qpdf/QPDFObjectHandle.hh @@ -190,6 +190,13 @@ class QPDFObjectHandle QPDF_DLL bool isOrHasName(std::string const&); + // Create a shallow copy of an object as a direct object. Since + // this is a shallow copy, for dictionaries and arrays, any keys + // or items that were indirect objects will still be indirect + // objects that point to the same place. + QPDF_DLL + QPDFObjectHandle shallowCopy(); + // Mutator methods. Use with caution. // Recursively copy this object, making it direct. Throws an |