summaryrefslogtreecommitdiffstats
path: root/filter
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-06-23 13:13:28 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-06-24 10:51:45 +0000
commit920d4463f6e59b815852c173e2974ffc7b4bb284 (patch)
treeac56efa2d79ad622f261e8664a57afa7c7ea0e49 /filter
parentloplugin:singlevalfields in basctl (diff)
downloadcore-920d4463f6e59b815852c173e2974ffc7b4bb284.tar.gz
core-920d4463f6e59b815852c173e2974ffc7b4bb284.zip
loplugin:singlevalfields in vcl(part1)
Change-Id: I0031199937cc95793951a070c4b3d8910933e69f Reviewed-on: https://gerrit.libreoffice.org/26595 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'filter')
-rw-r--r--filter/source/pdf/pdfexport.cxx9
1 files changed, 1 insertions, 8 deletions
diff --git a/filter/source/pdf/pdfexport.cxx b/filter/source/pdf/pdfexport.cxx
index 469e20f0c309..c98b07240a6a 100644
--- a/filter/source/pdf/pdfexport.cxx
+++ b/filter/source/pdf/pdfexport.cxx
@@ -651,13 +651,6 @@ bool PDFExport::Export( const OUString& rFile, const Sequence< PropertyValue >&
// check if PDF/A, which does not allow encryption
if( aContext.Version != vcl::PDFWriter::PDF_A_1 )
{
- // set values needed in encryption
- // set encryption level, fixed, but here it can set by the UI if needed.
- // true is 128 bit, false 40
- // note that in 40 bit mode the UI needs reworking, since the current UI is meaningfull only for
- // 128bit security mode
- aContext.Encryption.Security128bit = true;
-
// set check for permission change password
// if not enabled and no permission password, force permissions to default as if PDF where without encryption
if( mbRestrictPermissions && (xEnc.is() || !aPermissionPassword.isEmpty()) )
@@ -711,7 +704,7 @@ bool PDFExport::Export( const OUString& rFile, const Sequence< PropertyValue >&
aContext.Encryption.CanCopyOrExtract = mbCanCopyOrExtract;
aContext.Encryption.CanExtractForAccessibility = mbCanExtractForAccessibility;
if( mbEncrypt && ! xEnc.is() )
- xEnc = vcl::PDFWriter::InitEncryption( aPermissionPassword, aOpenPassword, aContext.Encryption.Security128bit );
+ xEnc = vcl::PDFWriter::InitEncryption( aPermissionPassword, aOpenPassword, true/*bSecurity128bit*/ );
if( mbEncrypt && !aPermissionPassword.isEmpty() && ! aPreparedPermissionPassword.getLength() )
aPreparedPermissionPassword = comphelper::OStorageHelper::CreatePackageEncryptionData( aPermissionPassword );
}