diff options
author | Jay Berkenbilt <ejb@ql.org> | 2012-12-31 11:50:43 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2012-12-31 16:32:32 +0100 |
commit | 9eb5982fa334a2db42a278fce853bd7ebd2a61a7 (patch) | |
tree | 46c76331bec287e9b1feaa6ca61afc19e11a4d1e /include | |
parent | 0ea70e5daed08e7a7c23ca5bf1a0320478d0e552 (diff) | |
download | qpdf-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')
-rw-r--r-- | include/qpdf/QPDFWriter.hh | 1 |
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(); |