diff options
Diffstat (limited to 'libqpdf/QPDFObjectHandle.cc')
-rw-r--r-- | libqpdf/QPDFObjectHandle.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libqpdf/QPDFObjectHandle.cc b/libqpdf/QPDFObjectHandle.cc index 1c2481f8..d0d911f7 100644 --- a/libqpdf/QPDFObjectHandle.cc +++ b/libqpdf/QPDFObjectHandle.cc @@ -616,12 +616,24 @@ QPDFObjectHandle::newString(std::string const& str) } QPDFObjectHandle +QPDFObjectHandle::newArray() +{ + return newArray(std::vector<QPDFObjectHandle>()); +} + +QPDFObjectHandle QPDFObjectHandle::newArray(std::vector<QPDFObjectHandle> const& items) { return QPDFObjectHandle(new QPDF_Array(items)); } QPDFObjectHandle +QPDFObjectHandle::newDictionary() +{ + return newDictionary(std::map<std::string, QPDFObjectHandle>()); +} + +QPDFObjectHandle QPDFObjectHandle::newDictionary( std::map<std::string, QPDFObjectHandle> const& items) { |