diff options
Diffstat (limited to 'fitz/doc_document.c')
-rw-r--r-- | fitz/doc_document.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fitz/doc_document.c b/fitz/doc_document.c index a23aef27..af70ddbc 100644 --- a/fitz/doc_document.c +++ b/fitz/doc_document.c @@ -38,7 +38,7 @@ fz_open_document_with_stream(fz_context *ctx, const char *magic, fz_stream *stre if (ext) { - if (!fz_strcasecmp(ext, ".xps") || !fz_strcasecmp(ext, ".rels")) + if (!fz_strcasecmp(ext, ".xps") || !fz_strcasecmp(ext, ".rels") || !fz_strcasecmp(ext, ".oxps")) return (fz_document*) xps_open_document_with_stream(ctx, stream); if (!fz_strcasecmp(ext, ".cbz") || !fz_strcasecmp(ext, ".zip")) return (fz_document*) cbz_open_document_with_stream(ctx, stream); @@ -53,7 +53,7 @@ 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, "application/vnd.ms-xpsdocument")) + if (!strcmp(magic, "xps") || !strcmp(magic, "oxps") || !strcmp(magic, "application/vnd.ms-xpsdocument")) 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); |