summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2012-06-22 05:06:48 +0200
committerJay Berkenbilt <ejb@ql.org>2012-06-22 05:09:05 +0200
commita0768e419064b66ea6eb3e06a4398806b24311e8 (patch)
tree6ecfa1f080bdab2ee4573d14dd71c06507b84bdd /include
parent9eb8c9159b97b500e0ecb36271b663cafc89d932 (diff)
downloadqpdf-a0768e419064b66ea6eb3e06a4398806b24311e8.tar.zst
Add QPDF::emptyPDF() and pdf_from_scratch test code
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDF.hh10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh
index 6a910e58..ef958f8e 100644
--- a/include/qpdf/QPDF.hh
+++ b/include/qpdf/QPDF.hh
@@ -69,6 +69,16 @@ class QPDF
char const* buf, size_t length,
char const* password = 0);
+ // Create a QPDF object for an empty PDF. This PDF has no pages
+ // or objects other than a minimal trailer, a document catalog,
+ // and a /Pages tree containing zero pages. Pages and other
+ // objects can be added to the file in the normal way, and the
+ // trailer and document catalog can be mutated. Calling this
+ // method is equivalent to calling processFile on an equivalent
+ // PDF file.
+ QPDF_DLL
+ void emptyPDF();
+
// Parameter settings
// By default, warning messages are issued to std::cerr and output