diff options
author | Bo Xu <bo_xu@foxitsoftware.com> | 2014-06-12 13:40:04 -0700 |
---|---|---|
committer | Bo Xu <bo_xu@foxitsoftware.com> | 2014-06-12 13:40:04 -0700 |
commit | a5572c3715624b38ac861c87236185f98fa9083b (patch) | |
tree | e1a081264c67430c2aabc33681fc51c07e3b9cbc /core/src/fpdfapi/fpdf_edit | |
parent | 3084c79dce15a41c056d4e5c634e09010e7323e0 (diff) | |
download | pdfium-a5572c3715624b38ac861c87236185f98fa9083b.tar.xz |
Enable security removal in FPDF_Doc_Save
R=jam@chromium.org
Review URL: https://codereview.chromium.org/333753002
Diffstat (limited to 'core/src/fpdfapi/fpdf_edit')
-rw-r--r-- | core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp b/core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp index e5bb1cf985..bdbcccdf06 100644 --- a/core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp +++ b/core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp @@ -1,7 +1,7 @@ // Copyright 2014 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. - + // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "../../../include/fpdfapi/fpdf_serial.h" @@ -2113,6 +2113,13 @@ FX_BOOL CPDF_Creator::SetFileVersion(FX_INT32 fileVersion ) m_FileVersion = fileVersion; return TRUE; } +void CPDF_Creator::RemoveSecurity() +{ + ResetStandardSecurity(); + m_bSecurityChanged = TRUE; + m_pEncryptDict = NULL; + m_pCryptoHandler = NULL; +} void CPDF_Creator::ResetStandardSecurity() { if ((m_bStandardSecurity || m_bNewCrypto) && m_pCryptoHandler) { |