From a0768e419064b66ea6eb3e06a4398806b24311e8 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Thu, 21 Jun 2012 23:06:48 -0400 Subject: Add QPDF::emptyPDF() and pdf_from_scratch test code --- include/qpdf/QPDF.hh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') 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 -- cgit v1.2.3-54-g00ecf