From c1627d04385a02045e7a1a5462f2a632fc529a2e Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Thu, 6 Sep 2012 15:30:13 -0400 Subject: Add QPDFWriter::setExtraHeaderText --- include/qpdf/QPDFWriter.hh | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include') diff --git a/include/qpdf/QPDFWriter.hh b/include/qpdf/QPDFWriter.hh index 5ee90262..2c1c32f6 100644 --- a/include/qpdf/QPDFWriter.hh +++ b/include/qpdf/QPDFWriter.hh @@ -163,6 +163,18 @@ class QPDFWriter QPDF_DLL void forcePDFVersion(std::string const&); + // Provide additional text to insert in the PDF file somewhere + // near the beginning of the file. This can be used to add + // comments to the beginning of a PDF file, for example, if those + // comments are to be consumed by some other application. No + // checks are performed to ensure that the text inserted here is + // valid PDF. If you want to insert multiline comments, you will + // need to include \n in the string yourself and start each line + // with %. An extra newline will be appended if one is not + // already present at the end of your text. + QPDF_DLL + void setExtraHeaderText(std::string const&); + // Cause a static /ID value to be generated. Use only in test // suites. QPDF_DLL @@ -354,6 +366,7 @@ class QPDFWriter std::string id2; // trailer dictionary std::string min_pdf_version; std::string forced_pdf_version; + std::string extra_header_text; int encryption_dict_objid; std::string cur_data_key; std::list > to_delete; -- cgit v1.2.3-54-g00ecf