aboutsummaryrefslogtreecommitdiffstats
path: root/include/qpdf/QPDFWriter.hh
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2012-12-31 11:50:43 +0100
committerJay Berkenbilt <ejb@ql.org>2012-12-31 16:32:32 +0100
commit9eb5982fa334a2db42a278fce853bd7ebd2a61a7 (patch)
tree46c76331bec287e9b1feaa6ca61afc19e11a4d1e /include/qpdf/QPDFWriter.hh
parent0ea70e5daed08e7a7c23ca5bf1a0320478d0e552 (diff)
downloadqpdf-9eb5982fa334a2db42a278fce853bd7ebd2a61a7.tar.zst
Avoid modifying trailer when writing
When preparing the trailer for writing to the new file, trim a copy of the trailer instead of the original file's trailer.
Diffstat (limited to 'include/qpdf/QPDFWriter.hh')
-rw-r--r--include/qpdf/QPDFWriter.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/qpdf/QPDFWriter.hh b/include/qpdf/QPDFWriter.hh
index 962c21dc..e8b744d2 100644
--- a/include/qpdf/QPDFWriter.hh
+++ b/include/qpdf/QPDFWriter.hh
@@ -322,6 +322,7 @@ class QPDFWriter
void setDataKey(int objid);
int openObject(int objid = 0);
void closeObject(int objid);
+ QPDFObjectHandle getTrimmedTrailer();
void prepareFileForWrite();
void writeStandard();
void writeLinearized();