From 09175e457852c585a68a86d43280f7e0790a4a3b Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Mon, 19 Oct 2009 00:17:11 +0000 Subject: more testing, bug fix for linearized aes encrypted files git-svn-id: svn+q:///qpdf/trunk@824 71b93d88-0707-0410-a8cf-f5a4172ac649 --- include/qpdf/QPDFWriter.hh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') 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& bits_to_clear); -- cgit v1.2.3-54-g00ecf