Index: fpdfsdk/javascript/cjs_runtime.cpp |
diff --git a/fpdfsdk/javascript/cjs_runtime.cpp b/fpdfsdk/javascript/cjs_runtime.cpp |
index 020472e5848809a608f3a90c8ff2b7d9d996ee3e..2bcdc2293b857fb7f7717546c7393182dc0137be 100644 |
--- a/fpdfsdk/javascript/cjs_runtime.cpp |
+++ b/fpdfsdk/javascript/cjs_runtime.cpp |
@@ -210,6 +210,10 @@ void CJS_Runtime::SetReaderDocument(CPDFSDK_Document* pReaderDoc) { |
} |
} |
+CPDFSDK_Document* CJS_Runtime::GetReaderDocument() { |
+ return m_pDocument; |
+} |
+ |
int CJS_Runtime::Execute(const CFX_WideString& script, CFX_WideString* info) { |
FXJSErr error = {}; |
int nRet = FXJS_Execute(m_isolate, script, &error); |