From beb08eb1a1fdda72f4ccea0fdb64367d555026fc Mon Sep 17 00:00:00 2001 From: fredrossperry Date: Tue, 8 Sep 2015 17:15:40 -0700 Subject: add fz_separation_disabled_on_page() and related functions --- source/fitz/document.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source/fitz/document.c') diff --git a/source/fitz/document.c b/source/fitz/document.c index 9c78187f..1fc4ff87 100644 --- a/source/fitz/document.c +++ b/source/fitz/document.c @@ -425,6 +425,14 @@ void fz_control_separation_on_page(fz_context *ctx, fz_page *page, int sep, int page->control_separation(ctx, page, sep, disable); } +int fz_separation_disabled_on_page (fz_context *ctx, fz_page *page, int sep) +{ + if (ctx == NULL || page == NULL || page->separation_disabled == NULL) + return 0; + + return page->separation_disabled(ctx, page, sep); +} + const char *fz_get_separation_on_page(fz_context *ctx, fz_page *page, int sep, uint32_t *rgba, uint32_t *cmyk) { if (ctx == NULL || page == NULL || page->get_separation == NULL) -- cgit v1.2.3