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 _FPDF_DATAAVAIL_H_ | 7 #ifndef _FPDF_DATAAVAIL_H_ |
8 #define _FPDF_DATAAVAIL_H_ | 8 #define _FPDF_DATAAVAIL_H_ |
9 | 9 |
10 #ifndef _FPDFVIEW_H_ | 10 #ifndef _FPDFVIEW_H_ |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 * Return value: | 184 * Return value: |
185 * Non-zero for Form data is fully available, 0 for Form da
ta not yet available. | 185 * Non-zero for Form data is fully available, 0 for Form da
ta not yet available. |
186 * Details: -1 - error, the input parameter not correct, su
ch as hints is null. | 186 * Details: -1 - error, the input parameter not correct, su
ch as hints is null. |
187 * 0 - data not available | 187 * 0 - data not available |
188 * 1 - data available | 188 * 1 - data available |
189 * 2 - no form data.
| 189 * 2 - no form data.
|
190 * Comments: | 190 * Comments: |
191 * This function call be called only after FPDFAvail_GetDoc
ument if called. | 191 * This function call be called only after FPDFAvail_GetDoc
ument if called. |
192 * The application should call this function whenever new d
ata arrived, and process all the | 192 * The application should call this function whenever new d
ata arrived, and process all the |
193 * generated download hints if any, until the function retu
rns non-zero value. Then the | 193 * generated download hints if any, until the function retu
rns non-zero value. Then the |
194 *» » » application can perform page loading. Recommend to call
FPDFDOC_InitFormFillEnviroument | 194 *» » » application can perform page loading. Recommend to call
FPDFDOC_InitFormFillEnvironment |
195 * after the function returns non-zero value. | 195 * after the function returns non-zero value. |
196 */ | 196 */ |
197 DLLEXPORT int STDCALL FPDFAvail_IsFormAvail(FPDF_AVAIL avail, FX_DOWNLOADHINTS*
hints); | 197 DLLEXPORT int STDCALL FPDFAvail_IsFormAvail(FPDF_AVAIL avail, FX_DOWNLOADHINTS*
hints); |
198 | 198 |
199 /** | 199 /** |
200 * Function: FPDFAvail_IsLinearized | 200 * Function: FPDFAvail_IsLinearized |
201 * To check whether a document is Linearized PDF file. | 201 * To check whether a document is Linearized PDF file. |
202 * | 202 * |
203 * Parameters: | 203 * Parameters: |
204 * avail - Handle to document availability
provider returned by FPDFAvail_Create | 204 * avail - Handle to document availability
provider returned by FPDFAvail_Create |
205 * Return value: | 205 * Return value: |
206 * return TRUE means the document is linearized PDF else no
t. | 206 * return TRUE means the document is linearized PDF else no
t. |
207 * FSDK_IS_LINEARIZED is a linearize file. | 207 * FSDK_IS_LINEARIZED is a linearize file. |
208 * FSDK_NOT_LINEARIZED is not a linearize file. | 208 * FSDK_NOT_LINEARIZED is not a linearize file. |
209 * FSDK_UNKNOW_LINEARIZED don't know whether the file is a
linearize file. | 209 * FSDK_UNKNOW_LINEARIZED don't know whether the file is a
linearize file. |
210 * Comments: | 210 * Comments: |
211 * It return TRUE/FALSE as soon as we have first 1K data.
If the file's size less than | 211 * It return TRUE/FALSE as soon as we have first 1K data.
If the file's size less than |
212 * 1K,we don't known whether the PDF is a linearized file. | 212 * 1K,we don't known whether the PDF is a linearized file. |
213 * | 213 * |
214 */ | 214 */ |
215 DLLEXPORT FPDF_BOOL STDCALL FPDFAvail_IsLinearized(FPDF_AVAIL avail); | 215 DLLEXPORT FPDF_BOOL STDCALL FPDFAvail_IsLinearized(FPDF_AVAIL avail); |
216 | 216 |
217 #ifdef __cplusplus | 217 #ifdef __cplusplus |
218 }; | 218 }; |
219 #endif | 219 #endif |
220 | 220 |
221 #endif | 221 #endif |
222 | 222 |
OLD | NEW |