Index: fpdfsdk/include/fsdk_mgr.h |
diff --git a/fpdfsdk/include/fsdk_mgr.h b/fpdfsdk/include/fsdk_mgr.h |
index 4c0ce1ea27d7228e21c1b3884b6c36507e6bdc85..300ca2287e89fc823fbf6578866a020b9cf2c1c5 100644 |
--- a/fpdfsdk/include/fsdk_mgr.h |
+++ b/fpdfsdk/include/fsdk_mgr.h |
@@ -475,7 +475,10 @@ class CPDFSDK_Document { |
~CPDFSDK_Document(); |
CPDFSDK_InterForm* GetInterForm(); |
- CPDFXFA_Document* GetDocument() { return m_pDoc; } |
+ CPDFXFA_Document* GetDocument() const { return m_pDoc; } |
+ CPDF_Document* GetPDFDocument() const { |
+ return m_pDoc ? m_pDoc->GetPDFDoc() : nullptr; |
+ } |
int GetPageViewCount() const { return m_pageMap.size(); } |
CPDFSDK_PageView* GetPageView(CPDFXFA_Page* pPDFXFAPage, |