From 49b5135d1a7df9a9f05fd2fd5d15462424f7e4b9 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Thu, 18 Jun 2015 20:48:50 +0100 Subject: Add separations functions to the fz_page interface. This way an app can query the separations on a page, turn them on/off etc. --- include/mupdf/fitz/document.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/mupdf/fitz/document.h') diff --git a/include/mupdf/fitz/document.h b/include/mupdf/fitz/document.h index c9b4f9cc..f7552ec0 100644 --- a/include/mupdf/fitz/document.h +++ b/include/mupdf/fitz/document.h @@ -51,6 +51,10 @@ typedef fz_annot *(fz_page_next_annot_fn)(fz_context *ctx, fz_page *page, fz_ann typedef fz_rect *(fz_page_bound_annot_fn)(fz_context *ctx, fz_page *page, fz_annot *annot, fz_rect *rect); typedef void (fz_page_run_annot_fn)(fz_context *ctx, fz_page *page, fz_annot *annot, fz_device *dev, const fz_matrix *transform, fz_cookie *cookie); +typedef void (fz_page_control_separation_fn)(fz_context *ctx, fz_page *page, int separation, int disable); +typedef int (fz_page_count_separations_fn)(fz_context *ctx, fz_page *page); +typedef const char *(fz_page_get_separation_fn)(fz_context *ctx, fz_page *page, int separation, uint32_t *rgb, uint32_t *cmyk); + struct fz_page_s { int refs; @@ -63,6 +67,9 @@ struct fz_page_s fz_page_bound_annot_fn *bound_annot; fz_page_run_annot_fn *run_annot; fz_page_page_presentation_fn *page_presentation; + fz_page_control_separation_fn *control_separation; + fz_page_count_separations_fn *count_separations; + fz_page_get_separation_fn *get_separation; }; struct fz_document_s -- cgit v1.2.3