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 // NOTE: External docs refer to this file as "fpdfview.h", so do not rename | 7 // NOTE: External docs refer to this file as "fpdfview.h", so do not rename |
8 // despite lack of consitency with other public files. | 8 // despite lack of consitency with other public files. |
9 | 9 |
10 #ifndef PUBLIC_FPDFVIEW_H_ | 10 #ifndef PUBLIC_FPDFVIEW_H_ |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 extern "C" { | 145 extern "C" { |
146 #endif | 146 #endif |
147 | 147 |
148 // Function: FPDF_InitLibrary | 148 // Function: FPDF_InitLibrary |
149 // Initialize the FPDFSDK library | 149 // Initialize the FPDFSDK library |
150 // Parameters: | 150 // Parameters: |
151 // None | 151 // None |
152 // Return value: | 152 // Return value: |
153 // None. | 153 // None. |
154 // Comments: | 154 // Comments: |
| 155 // Convenience function to call FPDF_InitLibraryWithConfig() for |
| 156 // backwards comatibility purposes. |
| 157 DLLEXPORT void STDCALL FPDF_InitLibrary(); |
| 158 |
| 159 // Process-wide options for initializing library. |
| 160 typedef struct FPDF_LIBRARY_CONFIG_ { |
| 161 // Version number of the interface. Currently must be 1. |
| 162 int version; |
| 163 |
| 164 // Array of paths to scan in place of the defaults when using built-in |
| 165 // FXGE font loading code. The array is terminated by a NULL pointer. |
| 166 // The Array may be NULL itself to use the default paths. May be ignored |
| 167 // entirely depending upon the platform. |
| 168 const char** m_pUserFontPaths; |
| 169 } FPDF_LIBRARY_CONFIG; |
| 170 |
| 171 // Function: FPDF_InitLibraryWithConfig |
| 172 // Initialize the FPDFSDK library |
| 173 // Parameters: |
| 174 // cfg - configuration information as above. |
| 175 // Return value: |
| 176 // None. |
| 177 // Comments: |
155 // You have to call this function before you can call any PDF | 178 // You have to call this function before you can call any PDF |
156 // processing functions. | 179 // processing functions. |
157 DLLEXPORT void STDCALL FPDF_InitLibrary(); | 180 DLLEXPORT void STDCALL |
| 181 FPDF_InitLibraryWithConfig(const FPDF_LIBRARY_CONFIG* config); |
158 | 182 |
159 // Function: FPDF_DestroyLibary | 183 // Function: FPDF_DestroyLibary |
160 // Release all resources allocated by the FPDFSDK library. | 184 // Release all resources allocated by the FPDFSDK library. |
161 // Parameters: | 185 // Parameters: |
162 // None. | 186 // None. |
163 // Return value: | 187 // Return value: |
164 // None. | 188 // None. |
165 // Comments: | 189 // Comments: |
166 // You can call this function to release all memory blocks allocated by | 190 // You can call this function to release all memory blocks allocated by |
167 // the library. | 191 // the library. |
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
934 | 958 |
935 // Function: FPDF_BStr_Clear | 959 // Function: FPDF_BStr_Clear |
936 // Helper function to clear a byte string. | 960 // Helper function to clear a byte string. |
937 DLLEXPORT FPDF_RESULT STDCALL FPDF_BStr_Clear(FPDF_BSTR* str); | 961 DLLEXPORT FPDF_RESULT STDCALL FPDF_BStr_Clear(FPDF_BSTR* str); |
938 | 962 |
939 #ifdef __cplusplus | 963 #ifdef __cplusplus |
940 } | 964 } |
941 #endif | 965 #endif |
942 | 966 |
943 #endif // PUBLIC_FPDFVIEW_H_ | 967 #endif // PUBLIC_FPDFVIEW_H_ |
OLD | NEW |