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