Index: fpdfsdk/fpdftext.cpp |
diff --git a/fpdfsdk/fpdftext.cpp b/fpdfsdk/fpdftext.cpp |
index 42823507869f65daefdbd7b34c404c8a25a655a7..6f3f45329e2e921f2f3e73ce002dfde3d598d762 100644 |
--- a/fpdfsdk/fpdftext.cpp |
+++ b/fpdfsdk/fpdftext.cpp |
@@ -16,7 +16,7 @@ |
#include "third_party/base/stl_util.h" |
#ifdef PDF_ENABLE_XFA |
-#include "fpdfsdk/fpdfxfa/cpdfxfa_document.h" |
+#include "fpdfsdk/fpdfxfa/cpdfxfa_context.h" |
#include "fpdfsdk/fpdfxfa/cpdfxfa_page.h" |
#endif // PDF_ENABLE_XFA |
@@ -47,8 +47,8 @@ DLLEXPORT FPDF_TEXTPAGE STDCALL FPDFText_LoadPage(FPDF_PAGE page) { |
#ifdef PDF_ENABLE_XFA |
CPDFXFA_Page* pPage = (CPDFXFA_Page*)page; |
- CPDFXFA_Document* pDoc = pPage->GetDocument(); |
- CPDF_ViewerPreferences viewRef(pDoc->GetPDFDoc()); |
+ CPDFXFA_Context* pContext = pPage->GetContext(); |
+ CPDF_ViewerPreferences viewRef(pContext->GetPDFDoc()); |
#else // PDF_ENABLE_XFA |
CPDF_ViewerPreferences viewRef(pPDFPage->m_pDocument); |
#endif // PDF_ENABLE_XFA |