diff options
Diffstat (limited to 'fpdfsdk/fpdfxfa/cpdfxfa_page.cpp')
-rw-r--r-- | fpdfsdk/fpdfxfa/cpdfxfa_page.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fpdfsdk/fpdfxfa/cpdfxfa_page.cpp b/fpdfsdk/fpdfxfa/cpdfxfa_page.cpp index 7e2dedaf45..e4618e3bbe 100644 --- a/fpdfsdk/fpdfxfa/cpdfxfa_page.cpp +++ b/fpdfsdk/fpdfxfa/cpdfxfa_page.cpp @@ -22,6 +22,18 @@ CPDFXFA_Page::CPDFXFA_Page(CPDFXFA_Context* pContext, int page_index) CPDFXFA_Page::~CPDFXFA_Page() {} +CPDF_Page* CPDFXFA_Page::AsPDFPage() { + return m_pPDFPage.Get(); +} + +CPDFXFA_Page* CPDFXFA_Page::AsXFAPage() { + return this; +} + +CPDF_Document* CPDFXFA_Page::GetDocument() const { + return GetDocumentExtension()->GetPDFDoc(); +} + bool CPDFXFA_Page::LoadPDFPage() { if (!m_pContext) return false; |