aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFWriter.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/QPDFWriter.cc')
-rw-r--r--libqpdf/QPDFWriter.cc110
1 files changed, 0 insertions, 110 deletions
diff --git a/libqpdf/QPDFWriter.cc b/libqpdf/QPDFWriter.cc
index 215af009..2b3e0207 100644
--- a/libqpdf/QPDFWriter.cc
+++ b/libqpdf/QPDFWriter.cc
@@ -396,31 +396,6 @@ QPDFWriter::setR3EncryptionParameters(
char const* owner_password,
bool allow_accessibility,
bool allow_extract,
- qpdf_r3_print_e print,
- qpdf_r3_modify_e modify)
-{
- std::set<int> clear;
- interpretR3EncryptionParameters(
- clear,
- user_password,
- owner_password,
- allow_accessibility,
- allow_extract,
- true,
- true,
- true,
- true,
- print,
- modify);
- setEncryptionParameters(user_password, owner_password, 2, 3, 16, clear);
-}
-
-void
-QPDFWriter::setR3EncryptionParameters(
- char const* user_password,
- char const* owner_password,
- bool allow_accessibility,
- bool allow_extract,
bool allow_assemble,
bool allow_annotate_and_form,
bool allow_form_filling,
@@ -449,35 +424,6 @@ QPDFWriter::setR4EncryptionParameters(
char const* owner_password,
bool allow_accessibility,
bool allow_extract,
- qpdf_r3_print_e print,
- qpdf_r3_modify_e modify,
- bool encrypt_metadata,
- bool use_aes)
-{
- std::set<int> clear;
- interpretR3EncryptionParameters(
- clear,
- user_password,
- owner_password,
- allow_accessibility,
- allow_extract,
- true,
- true,
- true,
- true,
- print,
- modify);
- this->m->encrypt_use_aes = use_aes;
- this->m->encrypt_metadata = encrypt_metadata;
- setEncryptionParameters(user_password, owner_password, 4, 4, 16, clear);
-}
-
-void
-QPDFWriter::setR4EncryptionParameters(
- char const* user_password,
- char const* owner_password,
- bool allow_accessibility,
- bool allow_extract,
bool allow_assemble,
bool allow_annotate_and_form,
bool allow_form_filling,
@@ -510,34 +456,6 @@ QPDFWriter::setR5EncryptionParameters(
char const* owner_password,
bool allow_accessibility,
bool allow_extract,
- qpdf_r3_print_e print,
- qpdf_r3_modify_e modify,
- bool encrypt_metadata)
-{
- std::set<int> clear;
- interpretR3EncryptionParameters(
- clear,
- user_password,
- owner_password,
- allow_accessibility,
- allow_extract,
- true,
- true,
- true,
- true,
- print,
- modify);
- this->m->encrypt_use_aes = true;
- this->m->encrypt_metadata = encrypt_metadata;
- setEncryptionParameters(user_password, owner_password, 5, 5, 32, clear);
-}
-
-void
-QPDFWriter::setR5EncryptionParameters(
- char const* user_password,
- char const* owner_password,
- bool allow_accessibility,
- bool allow_extract,
bool allow_assemble,
bool allow_annotate_and_form,
bool allow_form_filling,
@@ -569,34 +487,6 @@ QPDFWriter::setR6EncryptionParameters(
char const* owner_password,
bool allow_accessibility,
bool allow_extract,
- qpdf_r3_print_e print,
- qpdf_r3_modify_e modify,
- bool encrypt_metadata)
-{
- std::set<int> clear;
- interpretR3EncryptionParameters(
- clear,
- user_password,
- owner_password,
- allow_accessibility,
- allow_extract,
- true,
- true,
- true,
- true,
- print,
- modify);
- this->m->encrypt_use_aes = true;
- this->m->encrypt_metadata = encrypt_metadata;
- setEncryptionParameters(user_password, owner_password, 5, 6, 32, clear);
-}
-
-void
-QPDFWriter::setR6EncryptionParameters(
- char const* user_password,
- char const* owner_password,
- bool allow_accessibility,
- bool allow_extract,
bool allow_assemble,
bool allow_annotate_and_form,
bool allow_form_filling,