pdfexport.cxx (a8f4084d) pdfexport.cxx (b1bc2d97)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 651 unchanged lines hidden (view full) ---

660 aContext.FirstPageLeft = mbFirstPageLeft;
661
662//check if PDF/A, which does not allow encryption
663 if( aContext.Version != PDFWriter::PDF_A_1 )
664 {
665//set values needed in encryption
666//set encryption level, fixed, but here it can set by the UI if needed.
667// true is 128 bit, false 40
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 651 unchanged lines hidden (view full) ---

660 aContext.FirstPageLeft = mbFirstPageLeft;
661
662//check if PDF/A, which does not allow encryption
663 if( aContext.Version != PDFWriter::PDF_A_1 )
664 {
665//set values needed in encryption
666//set encryption level, fixed, but here it can set by the UI if needed.
667// true is 128 bit, false 40
668//note that in 40 bit mode the UI needs reworking, since the current UI is meaningfull only for
668//note that in 40 bit mode the UI needs reworking, since the current UI is meaningful only for
669//128bit security mode
670 aContext.Encryption.Security128bit = sal_True;
671
672//set check for permission change password
673// if not enabled and no permission password, force permissions to default as if PDF where without encryption
674 if( mbRestrictPermissions && (xEnc.is() || aPermissionPassword.getLength() > 0) )
675 {
676 mbEncrypt = sal_True;

--- 452 unchanged lines hidden ---
669//128bit security mode
670 aContext.Encryption.Security128bit = sal_True;
671
672//set check for permission change password
673// if not enabled and no permission password, force permissions to default as if PDF where without encryption
674 if( mbRestrictPermissions && (xEnc.is() || aPermissionPassword.getLength() > 0) )
675 {
676 mbEncrypt = sal_True;

--- 452 unchanged lines hidden ---