diff options
author | Iru Cai <mytbk920423@gmail.com> | 2018-11-18 23:37:45 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2018-11-18 23:37:45 +0800 |
commit | bb619e85ec9009f29a1e82050b6562a84024f63e (patch) | |
tree | db585202940c9fa33886413a1c7404856a47ca9f /source/pdf/pdf-crypt.c | |
parent | 7f77313e6d60fc917146b80cce2f9c1ab0152349 (diff) | |
download | mupdf-bb619e85ec9009f29a1e82050b6562a84024f63e.tar.xz |
support ProfXJC
build with `make USE_SYSTEM_LIBS=yes build=debug -j5`
Diffstat (limited to 'source/pdf/pdf-crypt.c')
-rw-r--r-- | source/pdf/pdf-crypt.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/pdf/pdf-crypt.c b/source/pdf/pdf-crypt.c index 7be666d2..cbc7f26f 100644 --- a/source/pdf/pdf-crypt.c +++ b/source/pdf/pdf-crypt.c @@ -64,6 +64,14 @@ pdf_new_crypt(fz_context *ctx, pdf_obj *dict, pdf_obj *id) pdf_drop_crypt(ctx, crypt); fz_throw(ctx, FZ_ERROR_GENERIC, "unspecified encryption handler"); } +#if 1 + if (!strcmp("ProfXJC", pdf_to_name(ctx, obj))) +#else + if (pdf_name_eq(ctx, PDF_NAME(ProfXJC), obj)) +#endif + { + return crypt; + } if (!pdf_name_eq(ctx, PDF_NAME(Standard), obj)) { pdf_drop_crypt(ctx, crypt); |