summaryrefslogtreecommitdiff
path: root/fitz/doc_document.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-04-17 00:40:43 +0100
committerRobin Watts <robin.watts@artifex.com>2012-04-17 09:25:03 +0100
commit4069e52998d2cb2b54e65e8a8b418868ffa73bee (patch)
tree423024feca20fdb07224ecb40c807dbb3fbd4644 /fitz/doc_document.c
parent00851c1b04215f2e5688836be57e4efdb198483b (diff)
downloadmupdf-4069e52998d2cb2b54e65e8a8b418868ffa73bee.tar.xz
Add Meta interface to fz_document.
Use this to reintroduce "Document Properties..." in mupdf viewer.
Diffstat (limited to 'fitz/doc_document.c')
-rw-r--r--fitz/doc_document.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/fitz/doc_document.c b/fitz/doc_document.c
index 2da7a110..095a7fb5 100644
--- a/fitz/doc_document.c
+++ b/fitz/doc_document.c
@@ -113,3 +113,11 @@ fz_free_page(fz_document *doc, fz_page *page)
if (doc && doc->free_page && page)
doc->free_page(doc, page);
}
+
+int
+fz_meta(fz_document *doc, int key, void *ptr, int size)
+{
+ if (doc && doc->meta)
+ return doc->meta(doc, key, ptr, size);
+ return FZ_META_UNKNOWN_KEY;
+}