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/fpdfapi/fpdf_parser.h" | |
8 #include "../../../include/fpdfapi/fpdf_module.h" | |
9 #include "../../../include/fpdfapi/fpdf_page.h" | |
10 #include "../../../src/fxcrt/fx_safe_types.h" | |
11 #include "../fpdf_page/pageint.h" | |
12 #include <utility> | 7 #include <utility> |
13 #include <vector> | 8 #include <vector> |
14 | 9 |
| 10 #include "../../../include/fpdfapi/fpdf_module.h" |
| 11 #include "../../../include/fpdfapi/fpdf_page.h" |
| 12 #include "../../../include/fpdfapi/fpdf_parser.h" |
| 13 #include "../../../include/fxcrt/fx_safe_types.h" |
| 14 #include "../fpdf_page/pageint.h" |
| 15 |
15 FX_BOOL IsSignatureDict(const CPDF_Dictionary* pDict) | 16 FX_BOOL IsSignatureDict(const CPDF_Dictionary* pDict) |
16 { | 17 { |
17 CPDF_Object* pType = pDict->GetElementValue(FX_BSTRC("Type")); | 18 CPDF_Object* pType = pDict->GetElementValue(FX_BSTRC("Type")); |
18 if (!pType) { | 19 if (!pType) { |
19 pType = pDict->GetElementValue(FX_BSTRC("FT")); | 20 pType = pDict->GetElementValue(FX_BSTRC("FT")); |
20 if (!pType) { | 21 if (!pType) { |
21 return FALSE; | 22 return FALSE; |
22 } | 23 } |
23 } | 24 } |
24 if (pType->GetString() == FX_BSTRC("Sig")) { | 25 if (pType->GetString() == FX_BSTRC("Sig")) { |
(...skipping 4614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4639 { | 4640 { |
4640 FX_INT32 iSize = m_childNode.GetSize(); | 4641 FX_INT32 iSize = m_childNode.GetSize(); |
4641 for (FX_INT32 i = 0; i < iSize; ++i) { | 4642 for (FX_INT32 i = 0; i < iSize; ++i) { |
4642 CPDF_PageNode *pNode = (CPDF_PageNode*)m_childNode[i]; | 4643 CPDF_PageNode *pNode = (CPDF_PageNode*)m_childNode[i]; |
4643 if (pNode) { | 4644 if (pNode) { |
4644 delete pNode; | 4645 delete pNode; |
4645 } | 4646 } |
4646 } | 4647 } |
4647 m_childNode.RemoveAll(); | 4648 m_childNode.RemoveAll(); |
4648 } | 4649 } |
OLD | NEW |