summaryrefslogtreecommitdiff
path: root/include/mupdf/fitz/document.h
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2015-06-18 20:48:50 +0100
committerRobin Watts <robin.watts@artifex.com>2015-06-29 12:16:53 +0100
commit49b5135d1a7df9a9f05fd2fd5d15462424f7e4b9 (patch)
tree9daacd571f8c868af9206ef9ccd7076cc8e14179 /include/mupdf/fitz/document.h
parent1a9426daf1d395cd22f320efdef8b8ca171683c3 (diff)
downloadmupdf-49b5135d1a7df9a9f05fd2fd5d15462424f7e4b9.tar.xz
Add separations functions to the fz_page interface.
This way an app can query the separations on a page, turn them on/off etc.
Diffstat (limited to 'include/mupdf/fitz/document.h')
-rw-r--r--include/mupdf/fitz/document.h7
1 files changed, 7 insertions, 0 deletions
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