| 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 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ | 7 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ |
| 8 #define CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ | 8 #define CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ |
| 9 | 9 |
| 10 #include "../fxcrt/fx_system.h" | 10 #include "../fxcrt/fx_system.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 #define FPDFPERM_PRINT_HIGH 0x0800 | 44 #define FPDFPERM_PRINT_HIGH 0x0800 |
| 45 #define FPDF_PAGE_MAX_NUM 0xFFFFF | 45 #define FPDF_PAGE_MAX_NUM 0xFFFFF |
| 46 | 46 |
| 47 // Indexed by 8-bit character code, contains either: | 47 // Indexed by 8-bit character code, contains either: |
| 48 // 'W' - for whitespace: NUL, TAB, CR, LF, FF, 0x80, 0xff | 48 // 'W' - for whitespace: NUL, TAB, CR, LF, FF, 0x80, 0xff |
| 49 // 'N' - for numeric: 0123456789+-. | 49 // 'N' - for numeric: 0123456789+-. |
| 50 // 'D' - for delimiter: %()/<>[]{} | 50 // 'D' - for delimiter: %()/<>[]{} |
| 51 // 'R' - otherwise. | 51 // 'R' - otherwise. |
| 52 extern const char PDF_CharType[256]; | 52 extern const char PDF_CharType[256]; |
| 53 | 53 |
| 54 // Indexed by 8-bit char code, contains unicode code points. |
| 55 extern const FX_WORD PDFDocEncoding[256]; |
| 56 |
| 54 class CPDF_Document : public CFX_PrivateData, public CPDF_IndirectObjects { | 57 class CPDF_Document : public CFX_PrivateData, public CPDF_IndirectObjects { |
| 55 public: | 58 public: |
| 56 CPDF_Document(); | 59 CPDF_Document(); |
| 57 explicit CPDF_Document(CPDF_Parser* pParser); | 60 explicit CPDF_Document(CPDF_Parser* pParser); |
| 58 | 61 |
| 59 ~CPDF_Document(); | 62 ~CPDF_Document(); |
| 60 | 63 |
| 61 CPDF_Parser* GetParser() const { return m_pParser; } | 64 CPDF_Parser* GetParser() const { return m_pParser; } |
| 62 | 65 |
| 63 CPDF_Dictionary* GetRoot() const { return m_pRootDict; } | 66 CPDF_Dictionary* GetRoot() const { return m_pRootDict; } |
| (...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 914 PDF_DATAAVAIL_PAGETREE, | 917 PDF_DATAAVAIL_PAGETREE, |
| 915 PDF_DATAAVAIL_PAGE, | 918 PDF_DATAAVAIL_PAGE, |
| 916 PDF_DATAAVAIL_PAGE_LATERLOAD, | 919 PDF_DATAAVAIL_PAGE_LATERLOAD, |
| 917 PDF_DATAAVAIL_RESOURCES, | 920 PDF_DATAAVAIL_RESOURCES, |
| 918 PDF_DATAAVAIL_DONE, | 921 PDF_DATAAVAIL_DONE, |
| 919 PDF_DATAAVAIL_ERROR, | 922 PDF_DATAAVAIL_ERROR, |
| 920 PDF_DATAAVAIL_LOADALLFILE, | 923 PDF_DATAAVAIL_LOADALLFILE, |
| 921 PDF_DATAAVAIL_TRAILER_APPEND | 924 PDF_DATAAVAIL_TRAILER_APPEND |
| 922 }; | 925 }; |
| 923 | 926 |
| 927 FX_BOOL PDF_DataDecode(const uint8_t* src_buf, |
| 928 FX_DWORD src_size, |
| 929 const CPDF_Dictionary* pDict, |
| 930 uint8_t*& dest_buf, |
| 931 FX_DWORD& dest_size, |
| 932 CFX_ByteString& ImageEncoding, |
| 933 CPDF_Dictionary*& pImageParms, |
| 934 FX_DWORD estimated_size, |
| 935 FX_BOOL bImageAcc); |
| 936 |
| 924 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ | 937 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ |
| OLD | NEW |