Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: public/fpdfview.h

Issue 1268323004: Allow external font-path configuration from pdfium_test. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Remove python driver changes Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 extern "C" { 117 extern "C" {
118 #endif 118 #endif
119 119
120 // Function: FPDF_InitLibrary 120 // Function: FPDF_InitLibrary
121 // Initialize the FPDFSDK library 121 // Initialize the FPDFSDK library
122 // Parameters: 122 // Parameters:
123 // None 123 // None
124 // Return value: 124 // Return value:
125 // None. 125 // None.
126 // Comments: 126 // Comments:
127 // Convenience function to call FPDF_InitLibraryWithConfig() for
128 // backwards comatibility purposes.
129 DLLEXPORT void STDCALL FPDF_InitLibrary();
130
131 // Process-wide options for initializing library.
132 typedef struct FPDF_LIBRARY_CONFIG_ {
133 // Version number of the interface. Currently must be 1.
134 int version;
135
136 // Array of paths to scan in place of the defaults when using built-in
137 // FXGE font loading code. The array is terminated by a NULL pointer.
138 // The Array may be NULL itself to use the default paths. May be ignored
139 // entirely depending upon the platform.
140 const char** m_pUserFontPaths;
141 } FPDF_LIBRARY_CONFIG;
142
143 // Function: FPDF_InitLibraryWithConfig
144 // Initialize the FPDFSDK library
145 // Parameters:
146 // cfg - configuration information as above.
147 // Return value:
148 // None.
149 // Comments:
127 // You have to call this function before you can call any PDF 150 // You have to call this function before you can call any PDF
128 // processing functions. 151 // processing functions.
129 DLLEXPORT void STDCALL FPDF_InitLibrary(); 152 DLLEXPORT void STDCALL FPDF_InitLibraryWithConfig(
153 const FPDF_LIBRARY_CONFIG* config);
130 154
131 // Function: FPDF_DestroyLibary 155 // Function: FPDF_DestroyLibary
132 // Release all resources allocated by the FPDFSDK library. 156 // Release all resources allocated by the FPDFSDK library.
133 // Parameters: 157 // Parameters:
134 // None. 158 // None.
135 // Return value: 159 // Return value:
136 // None. 160 // None.
137 // Comments: 161 // Comments:
138 // You can call this function to release all memory blocks allocated by 162 // You can call this function to release all memory blocks allocated by
139 // the library. 163 // the library.
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
798 DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDest(FPDF_DOCUMENT document, 822 DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDest(FPDF_DOCUMENT document,
799 int index, 823 int index,
800 void* buffer, 824 void* buffer,
801 long* buflen); 825 long* buflen);
802 826
803 #ifdef __cplusplus 827 #ifdef __cplusplus
804 } 828 }
805 #endif 829 #endif
806 830
807 #endif // PUBLIC_FPDFVIEW_H_ 831 #endif // PUBLIC_FPDFVIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698