OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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 "core/include/fpdfapi/cpdf_parser.h" | 7 #include "core/include/fpdfapi/cpdf_parser.h" |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
| 11 #include "core/include/fpdfapi/cpdf_array.h" |
| 12 #include "core/include/fpdfapi/cpdf_dictionary.h" |
11 #include "core/include/fpdfapi/cpdf_document.h" | 13 #include "core/include/fpdfapi/cpdf_document.h" |
| 14 #include "core/include/fpdfapi/cpdf_number.h" |
| 15 #include "core/include/fpdfapi/cpdf_stream.h" |
| 16 #include "core/include/fpdfapi/cpdf_reference.h" |
12 #include "core/include/fpdfapi/ipdf_crypto_handler.h" | 17 #include "core/include/fpdfapi/ipdf_crypto_handler.h" |
13 #include "core/include/fxcrt/fx_ext.h" | 18 #include "core/include/fxcrt/fx_ext.h" |
14 #include "core/include/fxcrt/fx_safe_types.h" | 19 #include "core/include/fxcrt/fx_safe_types.h" |
15 #include "core/src/fpdfapi/fpdf_parser/cpdf_standard_security_handler.h" | 20 #include "core/src/fpdfapi/fpdf_parser/cpdf_standard_security_handler.h" |
16 #include "core/src/fpdfapi/fpdf_parser/cpdf_syntax_parser.h" | 21 #include "core/src/fpdfapi/fpdf_parser/cpdf_syntax_parser.h" |
17 #include "core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.h" | 22 #include "core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.h" |
18 #include "third_party/base/stl_util.h" | 23 #include "third_party/base/stl_util.h" |
19 | 24 |
20 namespace { | 25 namespace { |
21 | 26 |
(...skipping 1615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1637 if (!LoadLinearizedAllCrossRefV4(m_LastXRefOffset, m_dwXrefStartObjNum) && | 1642 if (!LoadLinearizedAllCrossRefV4(m_LastXRefOffset, m_dwXrefStartObjNum) && |
1638 !LoadLinearizedAllCrossRefV5(m_LastXRefOffset)) { | 1643 !LoadLinearizedAllCrossRefV5(m_LastXRefOffset)) { |
1639 m_LastXRefOffset = 0; | 1644 m_LastXRefOffset = 0; |
1640 m_pSyntax->m_MetadataObjnum = dwSaveMetadataObjnum; | 1645 m_pSyntax->m_MetadataObjnum = dwSaveMetadataObjnum; |
1641 return FORMAT_ERROR; | 1646 return FORMAT_ERROR; |
1642 } | 1647 } |
1643 | 1648 |
1644 m_pSyntax->m_MetadataObjnum = dwSaveMetadataObjnum; | 1649 m_pSyntax->m_MetadataObjnum = dwSaveMetadataObjnum; |
1645 return SUCCESS; | 1650 return SUCCESS; |
1646 } | 1651 } |
OLD | NEW |