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

Side by Side Diff: fpdfsdk/include/fpdfformfill.h

Issue 939483003: Keep the declaration of FPDF_HasXFAField consistent with other XFA APIs (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | fpdfsdk/include/fpdfxfa/fpdfxfa_util.h » ('j') | fpdfsdk/src/fpdfview.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7
8 #ifndef _FPDFORMFILL_H 8 #ifndef _FPDFORMFILL_H
9 #define _FPDFORMFILL_H 9 #define _FPDFORMFILL_H
10 #include "fpdfview.h" 10 #include "fpdfview.h"
11 11
12 typedef void* FPDF_FORMHANDLE; 12 typedef void* FPDF_FORMHANDLE;
13 13
14 #define DOCTYPE_PDF 0 //Normal pdf Document
15 #define DOCTYPE_DYNIMIC_XFA 1 //Dynimic xfa Document Type
16 #define DOCTYPE_STATIC_XFA 2 //Static xfa Document Type
17
14 // Exported Functions 18 // Exported Functions
15 #ifdef __cplusplus 19 #ifdef __cplusplus
16 extern "C" { 20 extern "C" {
17 #endif 21 #endif
18 22
19 typedef struct _IPDF_JsPlatform 23 typedef struct _IPDF_JsPlatform
20 { 24 {
21 /** 25 /**
22 * Version number of the interface. Currently must be 1. 26 * Version number of the interface. Currently must be 1.
23 **/ 27 **/
(...skipping 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after
1087 * flags - 0 for normal display, or combina tion of flags defined above. 1091 * flags - 0 for normal display, or combina tion of flags defined above.
1088 * Return Value: 1092 * Return Value:
1089 * None. 1093 * None.
1090 * Comments: 1094 * Comments:
1091 * This method is designed to only render annotations and F ormFields on the page. 1095 * This method is designed to only render annotations and F ormFields on the page.
1092 * Without FPDF_ANNOT specified for flags, Rendering functi ons such as FPDF_RenderPageBitmap or FPDF_RenderPageBitmap_Start will only rende r page contents(without annotations) to a bitmap. 1096 * Without FPDF_ANNOT specified for flags, Rendering functi ons such as FPDF_RenderPageBitmap or FPDF_RenderPageBitmap_Start will only rende r page contents(without annotations) to a bitmap.
1093 * In order to implement the FormFill functions,Implementat ion should call this method after rendering functions finish rendering the page contents. 1097 * In order to implement the FormFill functions,Implementat ion should call this method after rendering functions finish rendering the page contents.
1094 **/ 1098 **/
1095 DLLEXPORT void STDCALL FPDF_FFLDraw(FPDF_FORMHANDLE hHandle,FPDF_BITMAP bitmap, FPDF_PAGE page, int start_x, int start_y, 1099 DLLEXPORT void STDCALL FPDF_FFLDraw(FPDF_FORMHANDLE hHandle,FPDF_BITMAP bitmap, FPDF_PAGE page, int start_x, int start_y,
1096 int size_x, int size_y, int rota te, int flags); 1100 int size_x, int size_y, int rota te, int flags);
1101 /**
1102 * Function: FPDF_HasXFAField
1103 * This method is designed to check whether a pdf document has XFA fields.
1104 * Parameters:
1105 * document - Handle to document. Retu rned by FPDF_LoadDocument function.
1106 * docType - Document type defined as DOCTYPE_xxx.
1107 * Return Value:
1108 * TRUE indicates that the input document has XFA fields, o therwise FALSE.
1109 **/
1110 DLLEXPORT FPDF_BOOL STDCALL FPDF_HasXFAField(FPDF_DOCUMENT document, int& docTyp e);
1097 1111
1098 /** 1112 /**
1099 * Function: FPDF_LoadXFA 1113 * Function: FPDF_LoadXFA
1100 * If the document consists of XFA fields, there should cal l this method to load XFA fields. 1114 * If the document consists of XFA fields, there should cal l this method to load XFA fields.
1101 * Parameters: 1115 * Parameters:
1102 * document - Handle to document. Retu rned by FPDF_LoadDocument function. 1116 * document - Handle to document. Retu rned by FPDF_LoadDocument function.
1103 * Return Value: 1117 * Return Value:
1104 * TRUE indicates success,otherwise FALSE. 1118 * TRUE indicates success,otherwise FALSE.
1105 **/ 1119 **/
1106 DLLEXPORT FPDF_BOOL STDCALL FPDF_LoadXFA(FPDF_DOCUMENT document); 1120 DLLEXPORT FPDF_BOOL STDCALL FPDF_LoadXFA(FPDF_DOCUMENT document);
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
1238 * TRUE indicates success, otherwise FALSE. 1252 * TRUE indicates success, otherwise FALSE.
1239 **/ 1253 **/
1240 DLLEXPORT FPDF_BOOL STDCALL FPDF_StringHandleAddString(FPDF_STRINGHANDLE stringH andle, FPDF_BYTESTRING bsText, FPDF_DWORD size); 1254 DLLEXPORT FPDF_BOOL STDCALL FPDF_StringHandleAddString(FPDF_STRINGHANDLE stringH andle, FPDF_BYTESTRING bsText, FPDF_DWORD size);
1241 1255
1242 #ifdef __cplusplus 1256 #ifdef __cplusplus
1243 }; 1257 };
1244 #endif 1258 #endif
1245 1259
1246 #endif //_FPDFORMFILL_H 1260 #endif //_FPDFORMFILL_H
1247 1261
OLDNEW
« no previous file with comments | « no previous file | fpdfsdk/include/fpdfxfa/fpdfxfa_util.h » ('j') | fpdfsdk/src/fpdfview.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698