aboutsummaryrefslogtreecommitdiffstats
path: root/include/qpdf/QPDFWriter.hh
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2017-07-29 18:18:03 +0200
committerJay Berkenbilt <ejb@ql.org>2017-07-29 18:21:38 +0200
commitf37d399d825fc70155a3634c26463a24a2e17035 (patch)
treeecf769faa530a34f58ff03fe57f0cb48d74a971d /include/qpdf/QPDFWriter.hh
parent6a7d53ad2bc9c7eb5964b5c0424616e8b3f068cd (diff)
downloadqpdf-f37d399d825fc70155a3634c26463a24a2e17035.tar.zst
Add newline-before-endstream option (fixes #103)
Diffstat (limited to 'include/qpdf/QPDFWriter.hh')
-rw-r--r--include/qpdf/QPDFWriter.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/qpdf/QPDFWriter.hh b/include/qpdf/QPDFWriter.hh
index fd35fecd..2519ed12 100644
--- a/include/qpdf/QPDFWriter.hh
+++ b/include/qpdf/QPDFWriter.hh
@@ -161,6 +161,11 @@ class QPDFWriter
QPDF_DLL
void setPreserveUnreferencedObjects(bool);
+ // Always write a newline before the endstream keyword. This helps
+ // with PDF/A compliance, though it is not sufficient for it.
+ QPDF_DLL
+ void setNewlineBeforeEndstream(bool);
+
// Set the minimum PDF version. If the PDF version of the input
// file (or previously set minimum version) is less than the
// version passed to this method, the PDF version of the output
@@ -434,6 +439,7 @@ class QPDFWriter
bool qdf_mode;
bool precheck_streams;
bool preserve_unreferenced_objects;
+ bool newline_before_endstream;
bool static_id;
bool suppress_original_object_ids;
bool direct_stream_lengths;