summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/fpdf_ext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/src/fpdf_ext.cpp')
-rw-r--r--fpdfsdk/src/fpdf_ext.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/fpdfsdk/src/fpdf_ext.cpp b/fpdfsdk/src/fpdf_ext.cpp
index ee542a6453..aa6725b288 100644
--- a/fpdfsdk/src/fpdf_ext.cpp
+++ b/fpdfsdk/src/fpdf_ext.cpp
@@ -9,6 +9,10 @@
#include "core/include/fxcrt/fx_xml.h"
#include "fpdfsdk/include/fsdk_define.h"
+#ifdef PDF_ENABLE_XFA
+#include "fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h"
+#endif // PDF_ENABLE_XFA
+
#define FPDFSDK_UNSUPPORT_CALL 100
class CFSDK_UnsupportInfo_Adapter {
@@ -16,7 +20,6 @@ class CFSDK_UnsupportInfo_Adapter {
CFSDK_UnsupportInfo_Adapter(UNSUPPORT_INFO* unsp_info) {
m_unsp_info = unsp_info;
}
- // FX_BOOL NeedToPauseNow();
void ReportError(int nErrorType);
private:
@@ -175,12 +178,14 @@ void CheckUnSupportError(CPDF_Document* pDoc, FX_DWORD err_code) {
if (pElement)
CheckSharedForm(pElement, "workflowType");
+#ifndef PDF_ENABLE_XFA
// XFA Forms
CPDF_InterForm* pInterForm = new CPDF_InterForm(pDoc, FALSE);
if (pInterForm->HasXFAForm()) {
FPDF_UnSupportError(FPDF_UNSP_DOC_XFAFORM);
}
delete pInterForm;
+#endif // PDF_ENABLE_XFA
}
DLLEXPORT int FPDFDoc_GetPageMode(FPDF_DOCUMENT document) {