diff options
author | Jay Berkenbilt <ejb@ql.org> | 2009-10-19 02:17:11 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2009-10-19 02:17:11 +0200 |
commit | 09175e457852c585a68a86d43280f7e0790a4a3b (patch) | |
tree | 64269f6bb06d53975f4b8fe51a3900f868748629 /include | |
parent | 94131116a90a076c49e799aa5e4c63ce0ecb0391 (diff) | |
download | qpdf-09175e457852c585a68a86d43280f7e0790a4a3b.tar.zst |
more testing, bug fix for linearized aes encrypted files
git-svn-id: svn+q:///qpdf/trunk@824 71b93d88-0707-0410-a8cf-f5a4172ac649
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QPDFWriter.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/qpdf/QPDFWriter.hh b/include/qpdf/QPDFWriter.hh index 8a4e9ebe..e16c5f99 100644 --- a/include/qpdf/QPDFWriter.hh +++ b/include/qpdf/QPDFWriter.hh @@ -98,6 +98,12 @@ class DLL_EXPORT QPDFWriter // you are sure the PDF file in question has no features of newer // versions of PDF or if you are willing to create files that old // viewers may try to open but not be able to properly interpret. + // If any encryption has been applied to the document either + // explicitly or by preserving the encryption of the source + // document, forcing the PDF version to a value too low to support + // that type of encryption will explicitly disable decryption. + // Additionally, forcing to a version below 1.5 will disable + // object streams. void forcePDFVersion(std::string const&); // Cause a static /ID value to be generated. Use only in test @@ -193,6 +199,7 @@ class DLL_EXPORT QPDFWriter char const* user_password, char const* owner_password, bool allow_accessibility, bool allow_extract, r3_print_e print, r3_modify_e modify); + void disableIncompatbleEncryption(float v); void setEncryptionParameters( char const* user_password, char const* owner_password, int V, int R, int key_len, std::set<int>& bits_to_clear); |