From 3d6cf4e4e543ce0d204db71ef8d0b9277219f250 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Tue, 20 Jun 2017 19:43:09 +0100 Subject: 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). --- platform/java/mupdf_native.h | 81 +++++++++++++++++++++++++++++++++----------- 1 file changed, 62 insertions(+), 19 deletions(-) (limited to 'platform/java/mupdf_native.h') 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 @@ -2836,6 +2820,65 @@ extern "C" { #ifdef __cplusplus extern "C" { #endif +#ifdef __cplusplus +} +#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 -- cgit v1.2.3