summaryrefslogtreecommitdiff
path: root/apps/pdfapp.c
diff options
context:
space:
mode:
authorPaul Gardiner <paulg.artifex@glidos.net>2012-09-19 15:06:04 +0100
committerPaul Gardiner <paulg.artifex@glidos.net>2012-09-19 15:06:04 +0100
commit7428d9e85791260bf9d481b49e90c4321339453a (patch)
treeb0ca0a6868c47119ade0f5a8a846f4d1ceef6782 /apps/pdfapp.c
parent5f8e096b9090577ed93072448339a6500a5178f3 (diff)
downloadmupdf-7428d9e85791260bf9d481b49e90c4321339453a.tar.xz
Forms: handle print request, both from javascript and from named action
Currently the app windows app responds with a message box explaining that the MuPDF library passes print requests to the app, but the app does not implement printing.
Diffstat (limited to 'apps/pdfapp.c')
-rw-r--r--apps/pdfapp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/pdfapp.c b/apps/pdfapp.c
index 0a87565a..5cb0adea 100644
--- a/apps/pdfapp.c
+++ b/apps/pdfapp.c
@@ -113,6 +113,9 @@ static void event_cb(fz_doc_event *event, void *data)
winalert(app, alert);
}
break;
+ case FZ_DOCUMENT_EVENT_PRINT:
+ winprint(app);
+ break;
}
}