diff options
author | Robin Watts <robin.watts@artifex.com> | 2015-08-20 12:39:31 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2015-08-21 19:10:01 +0100 |
commit | 79358b9f05196807b427734a9b209e70e270a61f (patch) | |
tree | 4f9848d10ef781efe98d9261d5f8a660140d794d /platform/android/src | |
parent | 574732c2534f5da73701fd322f72a5590bb32258 (diff) | |
download | mupdf-79358b9f05196807b427734a9b209e70e270a61f.tar.xz |
GProof: Fix Android JNI functions for multipage files.
Explicitly pass the page number into separation related
functions.
Diffstat (limited to 'platform/android/src')
-rw-r--r-- | platform/android/src/com/artifex/mupdfdemo/MuPDFCore.java | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/platform/android/src/com/artifex/mupdfdemo/MuPDFCore.java b/platform/android/src/com/artifex/mupdfdemo/MuPDFCore.java index 29e443c0..53b9d565 100644 --- a/platform/android/src/com/artifex/mupdfdemo/MuPDFCore.java +++ b/platform/android/src/com/artifex/mupdfdemo/MuPDFCore.java @@ -92,9 +92,9 @@ public class MuPDFCore private native void abortCookie(long cookie); private native String startProofInternal(); private native void endProofInternal(String filename); - private native int getNumSepsOnPageInternal(); - private native int controlSepOnPageInternal(int sep, boolean disable); - private native Separation getSepInternal(int sep); + private native int getNumSepsOnPageInternal(int page); + private native int controlSepOnPageInternal(int page, int sep, boolean disable); + private native Separation getSepInternal(int page, int sep); public native boolean javascriptSupported(); @@ -379,15 +379,20 @@ public class MuPDFCore return gprfSupportedInternal(); } - public synchronized int getNumSepsOnPage() { - return getNumSepsOnPageInternal(); + public static boolean isProofing() + { + return mIsProofing; + } + + public synchronized int getNumSepsOnPage(int page) { + return getNumSepsOnPageInternal(page); } - public synchronized int controlSepOnPage(int sep, boolean disable) { - return controlSepOnPageInternal(sep, disable); + public synchronized int controlSepOnPage(int page, int sep, boolean disable) { + return controlSepOnPageInternal(page, sep, disable); } - public synchronized Separation getSep(int sep) { - return getSepInternal(sep); + public synchronized Separation getSep(int page, int sep) { + return getSepInternal(page, sep); } } |