summaryrefslogtreecommitdiff
path: root/fpdfsdk/cpdfsdk_document.h
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/cpdfsdk_document.h')
-rw-r--r--fpdfsdk/cpdfsdk_document.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fpdfsdk/cpdfsdk_document.h b/fpdfsdk/cpdfsdk_document.h
index 3da229cc67..ee140d82ce 100644
--- a/fpdfsdk/cpdfsdk_document.h
+++ b/fpdfsdk/cpdfsdk_document.h
@@ -54,6 +54,7 @@ class CPDFSDK_Document : public CFX_Observable<CPDFSDK_Document> {
#ifdef PDF_ENABLE_XFA
// Gets the XFA document directly (XFA-only).
CPDFXFA_Document* GetXFADocument() const { return m_pDoc; }
+ void ResetXFADocument() { m_pDoc = nullptr; }
int GetPageViewCount() const { return m_pageMap.size(); }
#endif // PDF_ENABLE_XFA