From a072383d980fda364df6cd123383e9d1327430b7 Mon Sep 17 00:00:00 2001 From: Michael Vrhel Date: Wed, 12 Jul 2017 17:16:08 -0700 Subject: If page has no group then use output intent color space If the document has an output intent but no page group was defined then we should not let the target device color space define what our base group is. Instead we should push a group that uses the target output intent color space. This problem occurs on page 3 of the Altona test file (TextKnockout page). --- source/pdf/pdf-run.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/pdf/pdf-run.c b/source/pdf/pdf-run.c index 1d823277..7bff750b 100644 --- a/source/pdf/pdf-run.c +++ b/source/pdf/pdf-run.c @@ -70,6 +70,10 @@ pdf_run_page_contents_with_usage(fz_context *ctx, pdf_document *doc, pdf_page *p } } } + else + { + colorspace = fz_default_output_intent(ctx, default_cs); + } fz_begin_group(ctx, dev, fz_transform_rect(&mediabox, &local_ctm), colorspace, 1, 0, 0, 1); } -- cgit v1.2.3