summaryrefslogtreecommitdiff
path: root/source/fitz/document.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2013-07-25 14:24:24 +0200
committerRobin Watts <robin.watts@artifex.com>2013-07-26 00:07:37 +0100
commitbae8c0e3b36a6a1a00d848bdcecb101428e6b1b7 (patch)
tree4e4d75b74f3899490375475b4dc97f645811c83b /source/fitz/document.c
parenta51c9d972b257fce659dd4659e0df4f4ad380066 (diff)
downloadmupdf-bae8c0e3b36a6a1a00d848bdcecb101428e6b1b7.tar.xz
Add OpenXPS mime-type to fz_open_document.
Diffstat (limited to 'source/fitz/document.c')
-rw-r--r--source/fitz/document.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/fitz/document.c b/source/fitz/document.c
index 8adbf816..d1f90479 100644
--- a/source/fitz/document.c
+++ b/source/fitz/document.c
@@ -53,7 +53,9 @@ fz_open_document_with_stream(fz_context *ctx, const char *magic, fz_stream *stre
if (!strcmp(magic, "cbz") || !strcmp(magic, "application/x-cbz"))
return (fz_document*) cbz_open_document_with_stream(ctx, stream);
- if (!strcmp(magic, "xps") || !strcmp(magic, "oxps") || !strcmp(magic, "application/vnd.ms-xpsdocument"))
+ if (!strcmp(magic, "xps") || !strcmp(magic, "oxps") ||
+ !strcmp(magic, "application/vnd.ms-xpsdocument") ||
+ !strcmp(magic, "application/oxps"))
return (fz_document*) xps_open_document_with_stream(ctx, stream);
if (!strcmp(magic, "pdf") || !strcmp(magic, "application/pdf"))
return (fz_document*) pdf_open_document_with_stream(ctx, stream);