summaryrefslogtreecommitdiff
path: root/winrt/mupdfwinrt/muctx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'winrt/mupdfwinrt/muctx.cpp')
-rw-r--r--winrt/mupdfwinrt/muctx.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/winrt/mupdfwinrt/muctx.cpp b/winrt/mupdfwinrt/muctx.cpp
index f069fbeb..8651ffa5 100644
--- a/winrt/mupdfwinrt/muctx.cpp
+++ b/winrt/mupdfwinrt/muctx.cpp
@@ -502,6 +502,18 @@ HRESULT muctx::RenderPage(int page_num, int width, int height,
return S_OK;
}
+bool muctx::RequiresPassword(void)
+{
+ return fz_needs_password(mu_doc);
+}
+
+bool muctx::ApplyPassword(String^ password)
+{
+ /* Need to do String to char here */
+ // return fz_authenticate_password(mu_doc, password) != 0;
+ return 0;
+}
+
String^ muctx::GetHTML(int page_num)
{
fz_output *out = NULL;