diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-03-28 11:16:32 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-03-28 15:53:56 +0200 |
commit | 161a77db42e306216b5493cf8f8e739053eb86d2 (patch) | |
tree | 99febdbb86825c546820317524cc045717e86fac | |
parent | 2c6de6e7a8374ba454f1852377fa65ac1216e626 (diff) | |
download | mupdf-161a77db42e306216b5493cf8f8e739053eb86d2.tar.xz |
Java fixes.
-rw-r--r-- | platform/java/mupdf_native.c | 2 | ||||
-rw-r--r-- | platform/java/mupdf_native.h | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/platform/java/mupdf_native.c b/platform/java/mupdf_native.c index a4136004..c45afcd9 100644 --- a/platform/java/mupdf_native.c +++ b/platform/java/mupdf_native.c @@ -5338,7 +5338,7 @@ FUN(Buffer_writeRune)(JNIEnv *env, jobject self, jint rune) if (!ctx || !buf) return; fz_try(ctx) - fz_write_buffer_rune(ctx, buf, rune); + fz_append_rune(ctx, buf, rune); fz_catch(ctx) jni_rethrow(env, ctx); } diff --git a/platform/java/mupdf_native.h b/platform/java/mupdf_native.h index 095b3d81..acfaf1d1 100644 --- a/platform/java/mupdf_native.h +++ b/platform/java/mupdf_native.h @@ -751,10 +751,10 @@ JNIEXPORT jobject JNICALL Java_com_artifex_mupdf_fitz_DocumentWriter_beingPage /* * Class: com_artifex_mupdf_fitz_DocumentWriter * Method: endPage - * Signature: (Lcom/artifex/mupdf/fitz/Device;)V + * Signature: ()V */ JNIEXPORT void JNICALL Java_com_artifex_mupdf_fitz_DocumentWriter_endPage - (JNIEnv *, jobject, jobject); + (JNIEnv *, jobject); /* * Class: com_artifex_mupdf_fitz_DocumentWriter @@ -1366,6 +1366,8 @@ extern "C" { #define com_artifex_mupdf_fitz_PDFAnnotation_TYPE_WATERMARK 23L #undef com_artifex_mupdf_fitz_PDFAnnotation_TYPE_3D #define com_artifex_mupdf_fitz_PDFAnnotation_TYPE_3D 24L +#undef com_artifex_mupdf_fitz_PDFAnnotation_TYPE_UNKNOWN +#define com_artifex_mupdf_fitz_PDFAnnotation_TYPE_UNKNOWN -1L /* * Class: com_artifex_mupdf_fitz_PDFAnnotation * Method: getType |