summaryrefslogtreecommitdiff
path: root/pdf/pdf_pattern.c
diff options
context:
space:
mode:
Diffstat (limited to 'pdf/pdf_pattern.c')
-rw-r--r--pdf/pdf_pattern.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/pdf/pdf_pattern.c b/pdf/pdf_pattern.c
index 8137e624f..57a164493 100644
--- a/pdf/pdf_pattern.c
+++ b/pdf/pdf_pattern.c
@@ -483,11 +483,15 @@ pdfi_setpattern_type1(pdf_context *ctx, pdf_dict *stream_dict, pdf_dict *page_di
goto exit;
}
- /* See if pattern uses transparency */
- if (ctx->page.has_transparency) {
- code = pdfi_check_Pattern_transparency(ctx, pdict, page_dict, &transparency);
- if (code < 0)
- goto exit;
+ /* See if pattern uses transparency, or if we are in an overprint
+ simulation situation */
+ if (ctx->page.simulate_op)
+ transparency = true;
+ else
+ if (ctx->page.has_transparency) {
+ code = pdfi_check_Pattern_transparency(ctx, pdict, page_dict, &transparency);
+ if (code < 0)
+ goto exit;
}
/* TODO: Resources? Maybe I should check that they are all valid before proceeding, or something? */