summaryrefslogtreecommitdiff
path: root/platform/java/mupdf_native.h
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-07-17 16:55:17 +0800
committerSebastian Rasmussen <sebras@gmail.com>2016-07-17 22:33:52 +0800
commit014fb58f887086ea34f74dcdb0d91dbec05966d1 (patch)
tree7097cdb9854360e3579592fd8df0135907e5ffb3 /platform/java/mupdf_native.h
parentbbb324fad31db437d668eb4891473231c3520792 (diff)
downloadmupdf-014fb58f887086ea34f74dcdb0d91dbec05966d1.tar.xz
JNI: When adding stream/page contents, accept String.
This is for easy of use, in addition to accepting Buffer.
Diffstat (limited to 'platform/java/mupdf_native.h')
-rw-r--r--platform/java/mupdf_native.h24
1 files changed, 20 insertions, 4 deletions
diff --git a/platform/java/mupdf_native.h b/platform/java/mupdf_native.h
index 3756eae9..9cebff90 100644
--- a/platform/java/mupdf_native.h
+++ b/platform/java/mupdf_native.h
@@ -1454,22 +1454,38 @@ JNIEXPORT void JNICALL Java_com_artifex_mupdf_fitz_PDFDocument_deleteObject
/*
* Class: com_artifex_mupdf_fitz_PDFDocument
- * Method: addStream
+ * Method: addStreamBuffer
* Signature: (Lcom/artifex/mupdf/fitz/Buffer;)Lcom/artifex/mupdf/fitz/PDFObject;
*/
-JNIEXPORT jobject JNICALL Java_com_artifex_mupdf_fitz_PDFDocument_addStream
+JNIEXPORT jobject JNICALL Java_com_artifex_mupdf_fitz_PDFDocument_addStreamBuffer
(JNIEnv *, jobject, jobject);
/*
* Class: com_artifex_mupdf_fitz_PDFDocument
- * Method: addPage
+ * Method: addStreamString
+ * Signature: (Ljava/lang/String;)Lcom/artifex/mupdf/fitz/PDFObject;
+ */
+JNIEXPORT jobject JNICALL Java_com_artifex_mupdf_fitz_PDFDocument_addStreamString
+ (JNIEnv *, jobject, jstring);
+
+/*
+ * Class: com_artifex_mupdf_fitz_PDFDocument
+ * Method: addPageBuffer
* Signature: (Lcom/artifex/mupdf/fitz/Rect;ILcom/artifex/mupdf/fitz/PDFObject;Lcom/artifex/mupdf/fitz/Buffer;)Lcom/artifex/mupdf/fitz/PDFObject;
*/
-JNIEXPORT jobject JNICALL Java_com_artifex_mupdf_fitz_PDFDocument_addPage
+JNIEXPORT jobject JNICALL Java_com_artifex_mupdf_fitz_PDFDocument_addPageBuffer
(JNIEnv *, jobject, jobject, jint, jobject, jobject);
/*
* Class: com_artifex_mupdf_fitz_PDFDocument
+ * Method: addPageString
+ * Signature: (Lcom/artifex/mupdf/fitz/Rect;ILcom/artifex/mupdf/fitz/PDFObject;Ljava/lang/String;)Lcom/artifex/mupdf/fitz/PDFObject;
+ */
+JNIEXPORT jobject JNICALL Java_com_artifex_mupdf_fitz_PDFDocument_addPageString
+ (JNIEnv *, jobject, jobject, jint, jobject, jstring);
+
+/*
+ * Class: com_artifex_mupdf_fitz_PDFDocument
* Method: insertPage
* Signature: (ILcom/artifex/mupdf/fitz/PDFObject;)V
*/