summaryrefslogtreecommitdiff
path: root/include/mupdf/fitz/document.h
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2015-07-20 19:25:28 +0100
committerRobin Watts <robin.watts@artifex.com>2015-08-17 12:34:33 +0100
commit88003e46fa0db666d4cbccdfa81857ca7853e55f (patch)
tree51ecec7126a2e0c058b7e53d9ac41dfca5f685f1 /include/mupdf/fitz/document.h
parentffcd1d4b197a33c7d2d9f500451a2a40b52c23e9 (diff)
downloadmupdf-88003e46fa0db666d4cbccdfa81857ca7853e55f.tar.xz
Add JNI interface to MuPDFCore to read/write separations on a page.
Get separation information out to the Java level.
Diffstat (limited to 'include/mupdf/fitz/document.h')
-rw-r--r--include/mupdf/fitz/document.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/mupdf/fitz/document.h b/include/mupdf/fitz/document.h
index 1abdf807..5723bcc8 100644
--- a/include/mupdf/fitz/document.h
+++ b/include/mupdf/fitz/document.h
@@ -361,6 +361,27 @@ int fz_lookup_metadata(fz_context *ctx, fz_document *doc, const char *key, char
#define FZ_META_INFO_TITLE "info:Title"
/*
+ Get the number of separations on a page (including CMYK). This will
+ be 0, unless the format specifically supports separations (such as
+ gproof files).
+*/
+int fz_count_separations_on_page(fz_context *ctx, fz_page *page);
+
+/*
+ Enable/Disable a given separation on a given page. This will only
+ affect future renderings of pages from a format that supports
+ separations (such as gproof files).
+*/
+void fz_control_separation_on_page(fz_context *ctx, fz_page *page, int sep, int disable);
+
+/*
+ Get the name and equivalent RGBA, CMYK colors of a given separation
+ on a given page. This will only work for formats that support
+ gproof files.
+*/
+const char *fz_get_separation_on_page(fz_context *ctx, fz_page *page, int sep, uint32_t *rgba, uint32_t *cmyk);
+
+/*
fz_write_gproof_file: Given a currently open document, create a
gproof skeleton file from that document.