| Index: fpdfsdk/include/cpdfsdk_document.h
|
| diff --git a/fpdfsdk/include/cpdfsdk_document.h b/fpdfsdk/include/cpdfsdk_document.h
|
| index 5a83b74296a3ea323034e40bbed258ac746d26a1..463fce36c52dab66e22869e0ee1911d7ccad95b5 100644
|
| --- a/fpdfsdk/include/cpdfsdk_document.h
|
| +++ b/fpdfsdk/include/cpdfsdk_document.h
|
| @@ -82,7 +82,13 @@ class CPDFSDK_Document : public CFX_Observable<CPDFSDK_Document> {
|
|
|
| void OnCloseDocument();
|
|
|
| - int GetPageCount() { return m_pDoc->GetPageCount(); }
|
| + int GetPageCount() {
|
| +#ifdef PDF_ENABLE_XFA
|
| + return m_pDoc->GetXFAPageCount();
|
| +#else // PDF_ENABLE_XFA
|
| + return m_pDoc->GetPageCount();
|
| +#endif // PDF_ENABLE_XFA
|
| + }
|
| FX_BOOL GetPermissions(int nFlag);
|
| FX_BOOL GetChangeMark() { return m_bChangeMask; }
|
| void SetChangeMark() { m_bChangeMask = TRUE; }
|
|
|