From a101533e0a76a0890a2ad3ea5fcbb578da75a6b4 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 15 Jul 2012 21:15:24 -0400 Subject: Add command line option to copy encryption from other file Add --copy-encryption and --encryption-file-password options to qpdf. Also strengthen test suite for copying encryption. The strengthened test suite would have caught the failure to preserve AES and the failure to update the file version, which was invalidating the encrypted data. --- include/qpdf/QPDF.hh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh index 4c8ede86..3b72e981 100644 --- a/include/qpdf/QPDF.hh +++ b/include/qpdf/QPDF.hh @@ -248,6 +248,12 @@ class QPDF QPDF_DLL bool isEncrypted(int& R, int& P); + QPDF_DLL + bool isEncrypted(int& R, int& P, int& V, + encryption_method_e& stream_method, + encryption_method_e& string_method, + encryption_method_e& file_method); + // Encryption permissions -- not enforced by QPDF QPDF_DLL bool allowAccessibility(); -- cgit v1.2.3-54-g00ecf