diff options
author | Robin Watts <robin.watts@artifex.com> | 2017-07-25 17:43:26 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2017-07-27 12:32:56 +0100 |
commit | abf0e1933fc8ef803c1c5c96601b841c38a1d77f (patch) | |
tree | 5e4f3e4142bdc4f3a4f93ee8170d53ad5a42aba4 | |
parent | ea55784fe30a9cd5c5bfcd823dab8ae6cbc1a675 (diff) | |
download | mupdf-abf0e1933fc8ef803c1c5c96601b841c38a1d77f.tar.xz |
Fix overprint detection in pdf interpreter.
overprint is a boolean, overprint mode is an int. Neither
is a name.
-rw-r--r-- | source/pdf/pdf-interpret.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/pdf/pdf-interpret.c b/source/pdf/pdf-interpret.c index ee5b9cf7..051e0a59 100644 --- a/source/pdf/pdf-interpret.c +++ b/source/pdf/pdf-interpret.c @@ -203,15 +203,15 @@ pdf_process_extgstate(fz_context *ctx, pdf_processor *proc, pdf_csi *csi, pdf_ob /* overprint and color management */ obj = pdf_dict_get(ctx, dict, PDF_NAME_OP); - if (pdf_is_name(ctx, obj) && proc->op_gs_OP) + if (pdf_is_bool(ctx, obj) && proc->op_gs_OP) proc->op_gs_OP(ctx, proc, pdf_to_bool(ctx, obj)); obj = pdf_dict_get(ctx, dict, PDF_NAME_op); - if (pdf_is_name(ctx, obj) && proc->op_gs_op) + if (pdf_is_bool(ctx, obj) && proc->op_gs_op) proc->op_gs_op(ctx, proc, pdf_to_bool(ctx, obj)); obj = pdf_dict_get(ctx, dict, PDF_NAME_OPM); - if (pdf_is_name(ctx, obj) && proc->op_gs_OPM) + if (pdf_is_int(ctx, obj) && proc->op_gs_OPM) proc->op_gs_OPM(ctx, proc, pdf_to_int(ctx, obj)); obj = pdf_dict_get(ctx, dict, PDF_NAME_UseBlackPtComp); |