OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #include "../../../include/fxcrt/fx_ext.h" | |
8 #include "../../../include/fpdfapi/fpdf_serial.h" | |
9 #include "../../../include/fpdfapi/fpdf_parser.h" | |
10 #include "editint.h" | 7 #include "editint.h" |
11 | 8 |
| 9 #include "core/include/fxcrt/fx_ext.h" |
| 10 #include "core/include/fpdfapi/fpdf_serial.h" |
| 11 #include "core/include/fpdfapi/fpdf_parser.h" |
| 12 |
12 #define PDF_OBJECTSTREAM_MAXLENGTH (256 * 1024) | 13 #define PDF_OBJECTSTREAM_MAXLENGTH (256 * 1024) |
13 #define PDF_XREFSTREAM_MAXSIZE 10000 | 14 #define PDF_XREFSTREAM_MAXSIZE 10000 |
14 | 15 |
15 int32_t PDF_CreatorAppendObject(const CPDF_Object* pObj, | 16 int32_t PDF_CreatorAppendObject(const CPDF_Object* pObj, |
16 CFX_FileBufferArchive* pFile, | 17 CFX_FileBufferArchive* pFile, |
17 FX_FILESIZE& offset) { | 18 FX_FILESIZE& offset) { |
18 int32_t len = 0; | 19 int32_t len = 0; |
19 if (pObj == NULL) { | 20 if (pObj == NULL) { |
20 if (pFile->AppendString(FX_BSTRC(" null")) < 0) { | 21 if (pFile->AppendString(FX_BSTRC(" null")) < 0) { |
21 return -1; | 22 return -1; |
(...skipping 2089 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2111 m_bNewCrypto = FALSE; | 2112 m_bNewCrypto = FALSE; |
2112 if (!m_bStandardSecurity) { | 2113 if (!m_bStandardSecurity) { |
2113 return; | 2114 return; |
2114 } | 2115 } |
2115 if (m_pEncryptDict) { | 2116 if (m_pEncryptDict) { |
2116 m_pEncryptDict->Release(); | 2117 m_pEncryptDict->Release(); |
2117 m_pEncryptDict = NULL; | 2118 m_pEncryptDict = NULL; |
2118 } | 2119 } |
2119 m_bStandardSecurity = FALSE; | 2120 m_bStandardSecurity = FALSE; |
2120 } | 2121 } |
OLD | NEW |