From bb5ef88ea69242521915cabde162c9156b0ae947 Mon Sep 17 00:00:00 2001 From: Bo Xu Date: Thu, 6 Nov 2014 16:13:33 -0800 Subject: Change version of FPDF_FORMFILLINFO to 2; Add #define PDF_USE_XFA --- fpdfsdk/include/fpdfformfill.h | 12 ++++++++---- fpdfsdk/include/fpdfview.h | 3 +++ 2 files changed, 11 insertions(+), 4 deletions(-) (limited to 'fpdfsdk') diff --git a/fpdfsdk/include/fpdfformfill.h b/fpdfsdk/include/fpdfformfill.h index a08bfd16b7..bae07ce271 100644 --- a/fpdfsdk/include/fpdfformfill.h +++ b/fpdfsdk/include/fpdfformfill.h @@ -294,7 +294,7 @@ typedef struct _FPDF_SYSTEMTIME typedef struct _FPDF_FORMFILLINFO { /** - * Version number of the interface. Currently must be 1. + * Version number of the interface. Currently must be 2 (with XFA module). **/ int version; @@ -559,7 +559,13 @@ typedef struct _FPDF_FORMFILLINFO * See the Destinations description of <> in 8.2.1 for more details. **/ void (*FFI_DoGoToAction)(struct _FPDF_FORMFILLINFO* pThis, int nPageIndex, int zoomMode, float* fPosArray, int sizeofArray); - /** + + /** + * pointer to IPDF_JSPLATFORM interface + **/ + IPDF_JSPLATFORM* m_pJsPlatform; + + /** * Method: FFI_DisplayCaret * This method will show the caret at specified position. * Interface Version: @@ -788,8 +794,6 @@ typedef struct _FPDF_FORMFILLINFO * TRUE indicates success, otherwise FALSE. **/ FPDF_BOOL (*FFI_PutRequestURL)(struct _FPDF_FORMFILLINFO* pThis, FPDF_WIDESTRING wsURL, FPDF_WIDESTRING wsData, FPDF_WIDESTRING wsEncode); - - IPDF_JSPLATFORM* m_pJsPlatform; } FPDF_FORMFILLINFO; diff --git a/fpdfsdk/include/fpdfview.h b/fpdfsdk/include/fpdfview.h index 161bca2809..04a3af928d 100644 --- a/fpdfsdk/include/fpdfview.h +++ b/fpdfsdk/include/fpdfview.h @@ -12,6 +12,9 @@ #include #endif +// TODO: remove the #define when XFA is officially in pdfium +#define PDF_USE_XFA + // Data types typedef void* FPDF_MODULEMGR; -- cgit v1.2.3