aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2012-07-14 15:13:49 +0200
committerJay Berkenbilt <ejb@ql.org>2012-07-14 15:14:41 +0200
commit0575d77d77b0308535422ad2d3a1bf7c94baabb0 (patch)
tree296c10a722b700c70798eb2296a152914a9f5f6c /include
parentee3682f1068fa8edc6e90b911fe2dbfa6bd7733a (diff)
downloadqpdf-0575d77d77b0308535422ad2d3a1bf7c94baabb0.tar.zst
Add public QPDFWriter::copyEncryptionParameters
Method to copy encryption parameters from another file. Adapted from existing code to copy encryption parameters from the original file.
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFWriter.hh6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/qpdf/QPDFWriter.hh b/include/qpdf/QPDFWriter.hh
index 2261e45b..a17b91f4 100644
--- a/include/qpdf/QPDFWriter.hh
+++ b/include/qpdf/QPDFWriter.hh
@@ -188,6 +188,11 @@ class QPDFWriter
QPDF_DLL
void setPreserveEncryption(bool);
+ // Copy encryption parameters from another QPDF object. If you
+ // want to copy encryption from the object you are writing, call
+ // setPreserveEncryption(true) instead.
+ void copyEncryptionParameters(QPDF&);
+
// Set up for encrypted output. Disables stream prefiltering and
// content normalization. Note that setting R2 encryption
// parameters sets the PDF version to at least 1.3, setting R3
@@ -269,7 +274,6 @@ class QPDFWriter
int V, int R, int key_len, long P,
std::string const& O, std::string const& U,
std::string const& id1, std::string const& user_password);
- void copyEncryptionParameters();
void setDataKey(int objid);
int openObject(int objid = 0);
void closeObject(int objid);