From f37d399d825fc70155a3634c26463a24a2e17035 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 29 Jul 2017 12:18:03 -0400 Subject: Add newline-before-endstream option (fixes #103) --- include/qpdf/QPDFWriter.hh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') 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; -- cgit v1.2.3-54-g00ecf