summaryrefslogtreecommitdiff
path: root/fxjs
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs')
-rw-r--r--fxjs/cjs_document.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fxjs/cjs_document.cpp b/fxjs/cjs_document.cpp
index 07701902ea..de3c93c0cb 100644
--- a/fxjs/cjs_document.cpp
+++ b/fxjs/cjs_document.cpp
@@ -1251,7 +1251,7 @@ CJS_Return CJS_Document::getPageNthWord(
if (nPageNo < 0 || nPageNo >= pDocument->GetPageCount())
return CJS_Return(JSGetStringFromID(JSMessage::kValueError));
- CPDF_Dictionary* pPageDict = pDocument->GetPage(nPageNo);
+ CPDF_Dictionary* pPageDict = pDocument->GetPageDictionary(nPageNo);
if (!pPageDict)
return CJS_Return(false);
@@ -1300,7 +1300,7 @@ CJS_Return CJS_Document::getPageNumWords(
if (nPageNo < 0 || nPageNo >= pDocument->GetPageCount())
return CJS_Return(JSGetStringFromID(JSMessage::kValueError));
- CPDF_Dictionary* pPageDict = pDocument->GetPage(nPageNo);
+ CPDF_Dictionary* pPageDict = pDocument->GetPageDictionary(nPageNo);
if (!pPageDict)
return CJS_Return(false);