diff options
author | Robin Watts <robin.watts@artifex.com> | 2017-06-20 19:43:09 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2017-07-19 19:41:23 +0100 |
commit | 3d6cf4e4e543ce0d204db71ef8d0b9277219f250 (patch) | |
tree | f501d7bf12c00066bde1a4dc1bfc2e6bd6e0137b /platform/java/mupdf_native.h | |
parent | 041df2bd7029d436767ec5bfb4227dc1cdb30afc (diff) | |
download | mupdf-3d6cf4e4e543ce0d204db71ef8d0b9277219f250.tar.xz |
Rejig page separations interface.
Specifically this is aimed so we can efficiently get separation
details for PDF files (which may require a lengthy search process).
Diffstat (limited to 'platform/java/mupdf_native.h')
-rw-r--r-- | platform/java/mupdf_native.h | 81 |
1 files changed, 62 insertions, 19 deletions
diff --git a/platform/java/mupdf_native.h b/platform/java/mupdf_native.h index d7355376..991933c0 100644 --- a/platform/java/mupdf_native.h +++ b/platform/java/mupdf_native.h @@ -1418,28 +1418,12 @@ JNIEXPORT jbyteArray JNICALL Java_com_artifex_mupdf_fitz_Page_textAsHtml /* * Class: com_artifex_mupdf_fitz_Page - * Method: countSeparations - * Signature: ()I + * Method: getSeparations + * Signature: ()Lcom/artifex/mupdf/fitz/Separations; */ -JNIEXPORT jint JNICALL Java_com_artifex_mupdf_fitz_Page_countSeparations +JNIEXPORT jobject JNICALL Java_com_artifex_mupdf_fitz_Page_getSeparations (JNIEnv *, jobject); -/* - * Class: com_artifex_mupdf_fitz_Page - * Method: getSeparation - * Signature: (I)Lcom/artifex/mupdf/fitz/Separation; - */ -JNIEXPORT jobject JNICALL Java_com_artifex_mupdf_fitz_Page_getSeparation - (JNIEnv *, jobject, jint); - -/* - * Class: com_artifex_mupdf_fitz_Page - * Method: enableSeparation - * Signature: (IZ)V - */ -JNIEXPORT void JNICALL Java_com_artifex_mupdf_fitz_Page_enableSeparation - (JNIEnv *, jobject, jint, jboolean); - #ifdef __cplusplus } #endif @@ -2840,6 +2824,65 @@ extern "C" { } #endif #endif +/* Header for class com_artifex_mupdf_fitz_Separations */ + +#ifndef _Included_com_artifex_mupdf_fitz_Separations +#define _Included_com_artifex_mupdf_fitz_Separations +#ifdef __cplusplus +extern "C" { +#endif +/* + * Class: com_artifex_mupdf_fitz_Separations + * Method: finalize + * Signature: ()V + */ +JNIEXPORT void JNICALL Java_com_artifex_mupdf_fitz_Separations_finalize + (JNIEnv *, jobject); + +/* + * Class: com_artifex_mupdf_fitz_Separations + * Method: getNumberOfSeparations + * Signature: ()I + */ +JNIEXPORT jint JNICALL Java_com_artifex_mupdf_fitz_Separations_getNumberOfSeparations + (JNIEnv *, jobject); + +/* + * Class: com_artifex_mupdf_fitz_Separations + * Method: getSeparation + * Signature: (I)Lcom/artifex/mupdf/fitz/Separation; + */ +JNIEXPORT jobject JNICALL Java_com_artifex_mupdf_fitz_Separations_getSeparation + (JNIEnv *, jobject, jint); + +/* + * Class: com_artifex_mupdf_fitz_Separations + * Method: areSeparationsControllable + * Signature: ()Z + */ +JNIEXPORT jboolean JNICALL Java_com_artifex_mupdf_fitz_Separations_areSeparationsControllable + (JNIEnv *, jobject); + +/* + * Class: com_artifex_mupdf_fitz_Separations + * Method: disableSeparation + * Signature: (IZ)Z + */ +JNIEXPORT jboolean JNICALL Java_com_artifex_mupdf_fitz_Separations_disableSeparation + (JNIEnv *, jobject, jint, jboolean); + +/* + * Class: com_artifex_mupdf_fitz_Separations + * Method: isSeparationDisabled + * Signature: (I)Z + */ +JNIEXPORT jboolean JNICALL Java_com_artifex_mupdf_fitz_Separations_isSeparationDisabled + (JNIEnv *, jobject, jint); + +#ifdef __cplusplus +} +#endif +#endif /* Header for class com_artifex_mupdf_fitz_Shade */ #ifndef _Included_com_artifex_mupdf_fitz_Shade |