diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2013-07-25 14:24:24 +0200 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-07-26 00:07:37 +0100 |
commit | bae8c0e3b36a6a1a00d848bdcecb101428e6b1b7 (patch) | |
tree | 4e4d75b74f3899490375475b4dc97f645811c83b /source/fitz/document.c | |
parent | a51c9d972b257fce659dd4659e0df4f4ad380066 (diff) | |
download | mupdf-bae8c0e3b36a6a1a00d848bdcecb101428e6b1b7.tar.xz |
Add OpenXPS mime-type to fz_open_document.
Diffstat (limited to 'source/fitz/document.c')
-rw-r--r-- | source/fitz/document.c | 4 |
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); |