From abf0e1933fc8ef803c1c5c96601b841c38a1d77f Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Tue, 25 Jul 2017 17:43:26 +0100 Subject: Fix overprint detection in pdf interpreter. overprint is a boolean, overprint mode is an int. Neither is a name. --- source/pdf/pdf-interpret.c | 6 +++--- 1 file 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); -- cgit v1.2.3