From b6bdc0f5950287c1c9e76115bdec230dcf99b964 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Fri, 22 Jun 2012 09:46:33 -0400 Subject: Add factory methods for creating empty arrays and dictionaries. Also updated pdf_from_scratch test driver to use the new factories, and made some cosmetic improvements and documentation updates for the emptyPDF() method. --- include/qpdf/QPDFObjectHandle.hh | 4 ++++ include/qpdf/QUtil.hh | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/qpdf/QPDFObjectHandle.hh b/include/qpdf/QPDFObjectHandle.hh index 4a056185..8fd19764 100644 --- a/include/qpdf/QPDFObjectHandle.hh +++ b/include/qpdf/QPDFObjectHandle.hh @@ -106,9 +106,13 @@ class QPDFObjectHandle QPDF_DLL static QPDFObjectHandle newString(std::string const& str); QPDF_DLL + static QPDFObjectHandle newArray(); + QPDF_DLL static QPDFObjectHandle newArray( std::vector const& items); QPDF_DLL + static QPDFObjectHandle newDictionary(); + QPDF_DLL static QPDFObjectHandle newDictionary( std::map const& items); diff --git a/include/qpdf/QUtil.hh b/include/qpdf/QUtil.hh index 4d5981de..8d2c09cf 100644 --- a/include/qpdf/QUtil.hh +++ b/include/qpdf/QUtil.hh @@ -14,7 +14,6 @@ #include #include #include -#include namespace QUtil { -- cgit v1.2.3-54-g00ecf