| // Generated from Apache PDFBox library which is licensed under the Apache License 2.0. |
| // The following copyright from the original authors applies. |
| // |
| // Licensed to the Apache Software Foundation (ASF) under one or more |
| // contributor license agreements. See the NOTICE file distributed with |
| // this work for additional information regarding copyright ownership. |
| // The ASF licenses this file to You under the Apache License, Version 2.0 |
| // (the "License"); you may not use this file except in compliance with |
| // the License. You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| |
| // Autogenerated by jnigen. DO NOT EDIT! |
| |
| #include <stdint.h> |
| #include "dartjni.h" |
| #include "jni.h" |
| |
| thread_local JNIEnv* jniEnv; |
| JniContext* jni; |
| |
| JniContext* (*context_getter)(void); |
| JNIEnv* (*env_getter)(void); |
| |
| void setJniGetters(JniContext* (*cg)(void), JNIEnv* (*eg)(void)) { |
| context_getter = cg; |
| env_getter = eg; |
| } |
| |
| // org.apache.pdfbox.pdmodel.PDDocument |
| jclass _c_PDDocument = NULL; |
| |
| jmethodID _m_PDDocument__new0 = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__new0() { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__new0, "<init>", "()V"); |
| if (_m_PDDocument__new0 == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = |
| (*jniEnv)->NewObject(jniEnv, _c_PDDocument, _m_PDDocument__new0); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__new1 = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__new1(jobject memUsageSetting) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__new1, "<init>", |
| "(Lorg/apache/pdfbox/io/MemoryUsageSetting;)V"); |
| if (_m_PDDocument__new1 == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->NewObject(jniEnv, _c_PDDocument, |
| _m_PDDocument__new1, memUsageSetting); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__new2 = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__new2(jobject doc) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__new2, "<init>", |
| "(Lorg/apache/pdfbox/cos/COSDocument;)V"); |
| if (_m_PDDocument__new2 == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = |
| (*jniEnv)->NewObject(jniEnv, _c_PDDocument, _m_PDDocument__new2, doc); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__new3 = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__new3(jobject doc, jobject source) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__new3, "<init>", |
| "(Lorg/apache/pdfbox/cos/COSDocument;Lorg/apache/pdfbox/io/" |
| "RandomAccessRead;)V"); |
| if (_m_PDDocument__new3 == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->NewObject(jniEnv, _c_PDDocument, |
| _m_PDDocument__new3, doc, source); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__new4 = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__new4(jobject doc, jobject source, jobject permission) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__new4, "<init>", |
| "(Lorg/apache/pdfbox/cos/COSDocument;Lorg/apache/pdfbox/io/" |
| "RandomAccessRead;Lorg/apache/pdfbox/pdmodel/encryption/" |
| "AccessPermission;)V"); |
| if (_m_PDDocument__new4 == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->NewObject( |
| jniEnv, _c_PDDocument, _m_PDDocument__new4, doc, source, permission); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__addPage = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__addPage(jobject self_, jobject page) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__addPage, "addPage", |
| "(Lorg/apache/pdfbox/pdmodel/PDPage;)V"); |
| if (_m_PDDocument__addPage == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDDocument__addPage, page); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDDocument__addSignature = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__addSignature(jobject self_, jobject sigObject) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__addSignature, "addSignature", |
| "(Lorg/apache/pdfbox/pdmodel/interactive/digitalsignature/" |
| "PDSignature;)V"); |
| if (_m_PDDocument__addSignature == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDDocument__addSignature, |
| sigObject); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDDocument__addSignature1 = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__addSignature1(jobject self_, |
| jobject sigObject, |
| jobject options) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__addSignature1, "addSignature", |
| "(Lorg/apache/pdfbox/pdmodel/interactive/digitalsignature/" |
| "PDSignature;Lorg/apache/pdfbox/pdmodel/interactive/" |
| "digitalsignature/SignatureOptions;)V"); |
| if (_m_PDDocument__addSignature1 == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDDocument__addSignature1, |
| sigObject, options); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDDocument__addSignature2 = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__addSignature2(jobject self_, |
| jobject sigObject, |
| jobject signatureInterface) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__addSignature2, "addSignature", |
| "(Lorg/apache/pdfbox/pdmodel/interactive/digitalsignature/" |
| "PDSignature;Lorg/apache/pdfbox/pdmodel/interactive/" |
| "digitalsignature/SignatureInterface;)V"); |
| if (_m_PDDocument__addSignature2 == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDDocument__addSignature2, |
| sigObject, signatureInterface); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDDocument__addSignature3 = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__addSignature3(jobject self_, |
| jobject sigObject, |
| jobject signatureInterface, |
| jobject options) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__addSignature3, "addSignature", |
| "(Lorg/apache/pdfbox/pdmodel/interactive/digitalsignature/" |
| "PDSignature;Lorg/apache/pdfbox/pdmodel/interactive/" |
| "digitalsignature/SignatureInterface;Lorg/apache/pdfbox/pdmodel/" |
| "interactive/digitalsignature/SignatureOptions;)V"); |
| if (_m_PDDocument__addSignature3 == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDDocument__addSignature3, |
| sigObject, signatureInterface, options); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDDocument__addSignatureField = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__addSignatureField(jobject self_, |
| jobject sigFields, |
| jobject signatureInterface, |
| jobject options) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__addSignatureField, |
| "addSignatureField", |
| "(Ljava/util/List;Lorg/apache/pdfbox/pdmodel/interactive/" |
| "digitalsignature/SignatureInterface;Lorg/apache/pdfbox/pdmodel/" |
| "interactive/digitalsignature/SignatureOptions;)V"); |
| if (_m_PDDocument__addSignatureField == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDDocument__addSignatureField, |
| sigFields, signatureInterface, options); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDDocument__removePage = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__removePage(jobject self_, jobject page) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__removePage, "removePage", |
| "(Lorg/apache/pdfbox/pdmodel/PDPage;)V"); |
| if (_m_PDDocument__removePage == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDDocument__removePage, page); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDDocument__removePage1 = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__removePage1(jobject self_, int32_t pageNumber) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__removePage1, "removePage", "(I)V"); |
| if (_m_PDDocument__removePage1 == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDDocument__removePage1, |
| pageNumber); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDDocument__importPage = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__importPage(jobject self_, jobject page) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method( |
| _c_PDDocument, &_m_PDDocument__importPage, "importPage", |
| "(Lorg/apache/pdfbox/pdmodel/PDPage;)Lorg/apache/pdfbox/pdmodel/PDPage;"); |
| if (_m_PDDocument__importPage == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDDocument__importPage, page); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__getDocument = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__getDocument(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__getDocument, "getDocument", |
| "()Lorg/apache/pdfbox/cos/COSDocument;"); |
| if (_m_PDDocument__getDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = |
| (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_PDDocument__getDocument); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__getDocumentInformation = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__getDocumentInformation(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__getDocumentInformation, |
| "getDocumentInformation", |
| "()Lorg/apache/pdfbox/pdmodel/PDDocumentInformation;"); |
| if (_m_PDDocument__getDocumentInformation == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDDocument__getDocumentInformation); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__setDocumentInformation = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__setDocumentInformation(jobject self_, jobject info) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__setDocumentInformation, |
| "setDocumentInformation", |
| "(Lorg/apache/pdfbox/pdmodel/PDDocumentInformation;)V"); |
| if (_m_PDDocument__setDocumentInformation == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, |
| _m_PDDocument__setDocumentInformation, info); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDDocument__getDocumentCatalog = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__getDocumentCatalog(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__getDocumentCatalog, |
| "getDocumentCatalog", |
| "()Lorg/apache/pdfbox/pdmodel/PDDocumentCatalog;"); |
| if (_m_PDDocument__getDocumentCatalog == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDDocument__getDocumentCatalog); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__isEncrypted = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__isEncrypted(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__isEncrypted, "isEncrypted", "()Z"); |
| if (_m_PDDocument__isEncrypted == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| uint8_t _result = |
| (*jniEnv)->CallBooleanMethod(jniEnv, self_, _m_PDDocument__isEncrypted); |
| return (JniResult){.value = {.z = _result}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDDocument__getEncryption = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__getEncryption(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__getEncryption, "getEncryption", |
| "()Lorg/apache/pdfbox/pdmodel/encryption/PDEncryption;"); |
| if (_m_PDDocument__getEncryption == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = |
| (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_PDDocument__getEncryption); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__setEncryptionDictionary = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__setEncryptionDictionary(jobject self_, |
| jobject encryption) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__setEncryptionDictionary, |
| "setEncryptionDictionary", |
| "(Lorg/apache/pdfbox/pdmodel/encryption/PDEncryption;)V"); |
| if (_m_PDDocument__setEncryptionDictionary == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, |
| _m_PDDocument__setEncryptionDictionary, encryption); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDDocument__getLastSignatureDictionary = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__getLastSignatureDictionary(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method( |
| _c_PDDocument, &_m_PDDocument__getLastSignatureDictionary, |
| "getLastSignatureDictionary", |
| "()Lorg/apache/pdfbox/pdmodel/interactive/digitalsignature/PDSignature;"); |
| if (_m_PDDocument__getLastSignatureDictionary == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDDocument__getLastSignatureDictionary); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__getSignatureFields = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__getSignatureFields(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__getSignatureFields, |
| "getSignatureFields", "()Ljava/util/List;"); |
| if (_m_PDDocument__getSignatureFields == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDDocument__getSignatureFields); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__getSignatureDictionaries = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__getSignatureDictionaries(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__getSignatureDictionaries, |
| "getSignatureDictionaries", "()Ljava/util/List;"); |
| if (_m_PDDocument__getSignatureDictionaries == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDDocument__getSignatureDictionaries); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__registerTrueTypeFontForClosing = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__registerTrueTypeFontForClosing(jobject self_, |
| jobject ttf) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__registerTrueTypeFontForClosing, |
| "registerTrueTypeFontForClosing", |
| "(Lorg/apache/fontbox/ttf/TrueTypeFont;)V"); |
| if (_m_PDDocument__registerTrueTypeFontForClosing == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, |
| _m_PDDocument__registerTrueTypeFontForClosing, ttf); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDDocument__load = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__load(jobject file) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_static_method(_c_PDDocument, &_m_PDDocument__load, "load", |
| "(Ljava/io/File;)Lorg/apache/pdfbox/pdmodel/PDDocument;"); |
| if (_m_PDDocument__load == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallStaticObjectMethod( |
| jniEnv, _c_PDDocument, _m_PDDocument__load, file); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__load1 = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__load1(jobject file, jobject memUsageSetting) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_static_method( |
| _c_PDDocument, &_m_PDDocument__load1, "load", |
| "(Ljava/io/File;Lorg/apache/pdfbox/io/MemoryUsageSetting;)Lorg/apache/" |
| "pdfbox/pdmodel/PDDocument;"); |
| if (_m_PDDocument__load1 == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallStaticObjectMethod( |
| jniEnv, _c_PDDocument, _m_PDDocument__load1, file, memUsageSetting); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__load2 = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__load2(jobject file, jobject password) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_static_method(_c_PDDocument, &_m_PDDocument__load2, "load", |
| "(Ljava/io/File;Ljava/lang/String;)Lorg/apache/pdfbox/" |
| "pdmodel/PDDocument;"); |
| if (_m_PDDocument__load2 == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallStaticObjectMethod( |
| jniEnv, _c_PDDocument, _m_PDDocument__load2, file, password); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__load3 = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__load3(jobject file, |
| jobject password, |
| jobject memUsageSetting) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_static_method( |
| _c_PDDocument, &_m_PDDocument__load3, "load", |
| "(Ljava/io/File;Ljava/lang/String;Lorg/apache/pdfbox/io/" |
| "MemoryUsageSetting;)Lorg/apache/pdfbox/pdmodel/PDDocument;"); |
| if (_m_PDDocument__load3 == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallStaticObjectMethod( |
| jniEnv, _c_PDDocument, _m_PDDocument__load3, file, password, |
| memUsageSetting); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__load4 = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__load4(jobject file, |
| jobject password, |
| jobject keyStore, |
| jobject alias) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_static_method( |
| _c_PDDocument, &_m_PDDocument__load4, "load", |
| "(Ljava/io/File;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/" |
| "String;)Lorg/apache/pdfbox/pdmodel/PDDocument;"); |
| if (_m_PDDocument__load4 == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallStaticObjectMethod( |
| jniEnv, _c_PDDocument, _m_PDDocument__load4, file, password, keyStore, |
| alias); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__load5 = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__load5(jobject file, |
| jobject password, |
| jobject keyStore, |
| jobject alias, |
| jobject memUsageSetting) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_static_method( |
| _c_PDDocument, &_m_PDDocument__load5, "load", |
| "(Ljava/io/File;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/" |
| "String;Lorg/apache/pdfbox/io/MemoryUsageSetting;)Lorg/apache/pdfbox/" |
| "pdmodel/PDDocument;"); |
| if (_m_PDDocument__load5 == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallStaticObjectMethod( |
| jniEnv, _c_PDDocument, _m_PDDocument__load5, file, password, keyStore, |
| alias, memUsageSetting); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__load6 = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__load6(jobject input) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_static_method( |
| _c_PDDocument, &_m_PDDocument__load6, "load", |
| "(Ljava/io/InputStream;)Lorg/apache/pdfbox/pdmodel/PDDocument;"); |
| if (_m_PDDocument__load6 == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallStaticObjectMethod( |
| jniEnv, _c_PDDocument, _m_PDDocument__load6, input); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__load7 = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__load7(jobject input, jobject memUsageSetting) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_static_method( |
| _c_PDDocument, &_m_PDDocument__load7, "load", |
| "(Ljava/io/InputStream;Lorg/apache/pdfbox/io/MemoryUsageSetting;)Lorg/" |
| "apache/pdfbox/pdmodel/PDDocument;"); |
| if (_m_PDDocument__load7 == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallStaticObjectMethod( |
| jniEnv, _c_PDDocument, _m_PDDocument__load7, input, memUsageSetting); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__load8 = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__load8(jobject input, jobject password) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_static_method(_c_PDDocument, &_m_PDDocument__load8, "load", |
| "(Ljava/io/InputStream;Ljava/lang/String;)Lorg/apache/" |
| "pdfbox/pdmodel/PDDocument;"); |
| if (_m_PDDocument__load8 == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallStaticObjectMethod( |
| jniEnv, _c_PDDocument, _m_PDDocument__load8, input, password); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__load9 = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__load9(jobject input, |
| jobject password, |
| jobject keyStore, |
| jobject alias) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_static_method( |
| _c_PDDocument, &_m_PDDocument__load9, "load", |
| "(Ljava/io/InputStream;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/" |
| "String;)Lorg/apache/pdfbox/pdmodel/PDDocument;"); |
| if (_m_PDDocument__load9 == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallStaticObjectMethod( |
| jniEnv, _c_PDDocument, _m_PDDocument__load9, input, password, keyStore, |
| alias); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__load10 = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__load10(jobject input, |
| jobject password, |
| jobject memUsageSetting) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_static_method( |
| _c_PDDocument, &_m_PDDocument__load10, "load", |
| "(Ljava/io/InputStream;Ljava/lang/String;Lorg/apache/pdfbox/io/" |
| "MemoryUsageSetting;)Lorg/apache/pdfbox/pdmodel/PDDocument;"); |
| if (_m_PDDocument__load10 == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallStaticObjectMethod( |
| jniEnv, _c_PDDocument, _m_PDDocument__load10, input, password, |
| memUsageSetting); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__load11 = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__load11(jobject input, |
| jobject password, |
| jobject keyStore, |
| jobject alias, |
| jobject memUsageSetting) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_static_method( |
| _c_PDDocument, &_m_PDDocument__load11, "load", |
| "(Ljava/io/InputStream;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/" |
| "String;Lorg/apache/pdfbox/io/MemoryUsageSetting;)Lorg/apache/pdfbox/" |
| "pdmodel/PDDocument;"); |
| if (_m_PDDocument__load11 == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallStaticObjectMethod( |
| jniEnv, _c_PDDocument, _m_PDDocument__load11, input, password, keyStore, |
| alias, memUsageSetting); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__load12 = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__load12(jobject input) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_static_method(_c_PDDocument, &_m_PDDocument__load12, "load", |
| "([B)Lorg/apache/pdfbox/pdmodel/PDDocument;"); |
| if (_m_PDDocument__load12 == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallStaticObjectMethod( |
| jniEnv, _c_PDDocument, _m_PDDocument__load12, input); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__load13 = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__load13(jobject input, jobject password) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_static_method( |
| _c_PDDocument, &_m_PDDocument__load13, "load", |
| "([BLjava/lang/String;)Lorg/apache/pdfbox/pdmodel/PDDocument;"); |
| if (_m_PDDocument__load13 == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallStaticObjectMethod( |
| jniEnv, _c_PDDocument, _m_PDDocument__load13, input, password); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__load14 = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__load14(jobject input, |
| jobject password, |
| jobject keyStore, |
| jobject alias) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_static_method(_c_PDDocument, &_m_PDDocument__load14, "load", |
| "([BLjava/lang/String;Ljava/io/InputStream;Ljava/lang/" |
| "String;)Lorg/apache/pdfbox/pdmodel/PDDocument;"); |
| if (_m_PDDocument__load14 == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallStaticObjectMethod( |
| jniEnv, _c_PDDocument, _m_PDDocument__load14, input, password, keyStore, |
| alias); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__load15 = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__load15(jobject input, |
| jobject password, |
| jobject keyStore, |
| jobject alias, |
| jobject memUsageSetting) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_static_method( |
| _c_PDDocument, &_m_PDDocument__load15, "load", |
| "([BLjava/lang/String;Ljava/io/InputStream;Ljava/lang/String;Lorg/apache/" |
| "pdfbox/io/MemoryUsageSetting;)Lorg/apache/pdfbox/pdmodel/PDDocument;"); |
| if (_m_PDDocument__load15 == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallStaticObjectMethod( |
| jniEnv, _c_PDDocument, _m_PDDocument__load15, input, password, keyStore, |
| alias, memUsageSetting); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__save = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__save(jobject self_, jobject fileName) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__save, "save", |
| "(Ljava/lang/String;)V"); |
| if (_m_PDDocument__save == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDDocument__save, fileName); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDDocument__save1 = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__save1(jobject self_, jobject file) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__save1, "save", |
| "(Ljava/io/File;)V"); |
| if (_m_PDDocument__save1 == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDDocument__save1, file); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDDocument__save2 = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__save2(jobject self_, jobject output) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__save2, "save", |
| "(Ljava/io/OutputStream;)V"); |
| if (_m_PDDocument__save2 == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDDocument__save2, output); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDDocument__saveIncremental = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__saveIncremental(jobject self_, jobject output) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__saveIncremental, "saveIncremental", |
| "(Ljava/io/OutputStream;)V"); |
| if (_m_PDDocument__saveIncremental == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDDocument__saveIncremental, |
| output); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDDocument__saveIncremental1 = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__saveIncremental1(jobject self_, |
| jobject output, |
| jobject objectsToWrite) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__saveIncremental1, |
| "saveIncremental", "(Ljava/io/OutputStream;Ljava/util/Set;)V"); |
| if (_m_PDDocument__saveIncremental1 == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDDocument__saveIncremental1, |
| output, objectsToWrite); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDDocument__saveIncrementalForExternalSigning = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__saveIncrementalForExternalSigning(jobject self_, |
| jobject output) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__saveIncrementalForExternalSigning, |
| "saveIncrementalForExternalSigning", |
| "(Ljava/io/OutputStream;)Lorg/apache/pdfbox/pdmodel/interactive/" |
| "digitalsignature/ExternalSigningSupport;"); |
| if (_m_PDDocument__saveIncrementalForExternalSigning == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDDocument__saveIncrementalForExternalSigning, output); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__getPage = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__getPage(jobject self_, int32_t pageIndex) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__getPage, "getPage", |
| "(I)Lorg/apache/pdfbox/pdmodel/PDPage;"); |
| if (_m_PDDocument__getPage == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDDocument__getPage, pageIndex); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__getPages = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__getPages(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__getPages, "getPages", |
| "()Lorg/apache/pdfbox/pdmodel/PDPageTree;"); |
| if (_m_PDDocument__getPages == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = |
| (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_PDDocument__getPages); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__getNumberOfPages = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__getNumberOfPages(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__getNumberOfPages, |
| "getNumberOfPages", "()I"); |
| if (_m_PDDocument__getNumberOfPages == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| int32_t _result = |
| (*jniEnv)->CallIntMethod(jniEnv, self_, _m_PDDocument__getNumberOfPages); |
| return (JniResult){.value = {.i = _result}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDDocument__close = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__close(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__close, "close", "()V"); |
| if (_m_PDDocument__close == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDDocument__close); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDDocument__protect = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__protect(jobject self_, jobject policy) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__protect, "protect", |
| "(Lorg/apache/pdfbox/pdmodel/encryption/ProtectionPolicy;)V"); |
| if (_m_PDDocument__protect == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDDocument__protect, policy); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDDocument__getCurrentAccessPermission = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__getCurrentAccessPermission(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__getCurrentAccessPermission, |
| "getCurrentAccessPermission", |
| "()Lorg/apache/pdfbox/pdmodel/encryption/AccessPermission;"); |
| if (_m_PDDocument__getCurrentAccessPermission == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDDocument__getCurrentAccessPermission); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__isAllSecurityToBeRemoved = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__isAllSecurityToBeRemoved(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__isAllSecurityToBeRemoved, |
| "isAllSecurityToBeRemoved", "()Z"); |
| if (_m_PDDocument__isAllSecurityToBeRemoved == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| uint8_t _result = (*jniEnv)->CallBooleanMethod( |
| jniEnv, self_, _m_PDDocument__isAllSecurityToBeRemoved); |
| return (JniResult){.value = {.z = _result}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDDocument__setAllSecurityToBeRemoved = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__setAllSecurityToBeRemoved(jobject self_, |
| uint8_t removeAllSecurity) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__setAllSecurityToBeRemoved, |
| "setAllSecurityToBeRemoved", "(Z)V"); |
| if (_m_PDDocument__setAllSecurityToBeRemoved == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, |
| _m_PDDocument__setAllSecurityToBeRemoved, |
| removeAllSecurity); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDDocument__getDocumentId = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__getDocumentId(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__getDocumentId, "getDocumentId", |
| "()Ljava/lang/Long;"); |
| if (_m_PDDocument__getDocumentId == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = |
| (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_PDDocument__getDocumentId); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__setDocumentId = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__setDocumentId(jobject self_, jobject docId) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__setDocumentId, "setDocumentId", |
| "(Ljava/lang/Long;)V"); |
| if (_m_PDDocument__setDocumentId == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDDocument__setDocumentId, docId); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDDocument__getVersion = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__getVersion(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__getVersion, "getVersion", "()F"); |
| if (_m_PDDocument__getVersion == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| float _result = |
| (*jniEnv)->CallFloatMethod(jniEnv, self_, _m_PDDocument__getVersion); |
| return (JniResult){.value = {.f = _result}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDDocument__setVersion = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__setVersion(jobject self_, float newVersion) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__setVersion, "setVersion", "(F)V"); |
| if (_m_PDDocument__setVersion == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDDocument__setVersion, |
| newVersion); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDDocument__getResourceCache = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__getResourceCache(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__getResourceCache, |
| "getResourceCache", |
| "()Lorg/apache/pdfbox/pdmodel/ResourceCache;"); |
| if (_m_PDDocument__getResourceCache == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDDocument__getResourceCache); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocument__setResourceCache = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocument__setResourceCache(jobject self_, jobject resourceCache) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument"); |
| if (_c_PDDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocument, &_m_PDDocument__setResourceCache, |
| "setResourceCache", |
| "(Lorg/apache/pdfbox/pdmodel/ResourceCache;)V"); |
| if (_m_PDDocument__setResourceCache == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDDocument__setResourceCache, |
| resourceCache); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| // org.apache.pdfbox.pdmodel.PDDocumentInformation |
| jclass _c_PDDocumentInformation = NULL; |
| |
| jmethodID _m_PDDocumentInformation__new0 = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocumentInformation__new0() { |
| load_env(); |
| load_class_global_ref(&_c_PDDocumentInformation, |
| "org/apache/pdfbox/pdmodel/PDDocumentInformation"); |
| if (_c_PDDocumentInformation == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocumentInformation, &_m_PDDocumentInformation__new0, |
| "<init>", "()V"); |
| if (_m_PDDocumentInformation__new0 == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->NewObject(jniEnv, _c_PDDocumentInformation, |
| _m_PDDocumentInformation__new0); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocumentInformation__new1 = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocumentInformation__new1(jobject dic) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocumentInformation, |
| "org/apache/pdfbox/pdmodel/PDDocumentInformation"); |
| if (_c_PDDocumentInformation == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocumentInformation, &_m_PDDocumentInformation__new1, |
| "<init>", "(Lorg/apache/pdfbox/cos/COSDictionary;)V"); |
| if (_m_PDDocumentInformation__new1 == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->NewObject(jniEnv, _c_PDDocumentInformation, |
| _m_PDDocumentInformation__new1, dic); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocumentInformation__getCOSObject = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocumentInformation__getCOSObject(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocumentInformation, |
| "org/apache/pdfbox/pdmodel/PDDocumentInformation"); |
| if (_c_PDDocumentInformation == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocumentInformation, &_m_PDDocumentInformation__getCOSObject, |
| "getCOSObject", "()Lorg/apache/pdfbox/cos/COSDictionary;"); |
| if (_m_PDDocumentInformation__getCOSObject == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDDocumentInformation__getCOSObject); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocumentInformation__getPropertyStringValue = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocumentInformation__getPropertyStringValue(jobject self_, |
| jobject propertyKey) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocumentInformation, |
| "org/apache/pdfbox/pdmodel/PDDocumentInformation"); |
| if (_c_PDDocumentInformation == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocumentInformation, |
| &_m_PDDocumentInformation__getPropertyStringValue, |
| "getPropertyStringValue", |
| "(Ljava/lang/String;)Ljava/lang/Object;"); |
| if (_m_PDDocumentInformation__getPropertyStringValue == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDDocumentInformation__getPropertyStringValue, |
| propertyKey); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocumentInformation__getTitle = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocumentInformation__getTitle(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocumentInformation, |
| "org/apache/pdfbox/pdmodel/PDDocumentInformation"); |
| if (_c_PDDocumentInformation == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocumentInformation, &_m_PDDocumentInformation__getTitle, |
| "getTitle", "()Ljava/lang/String;"); |
| if (_m_PDDocumentInformation__getTitle == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDDocumentInformation__getTitle); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocumentInformation__setTitle = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocumentInformation__setTitle(jobject self_, jobject title) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocumentInformation, |
| "org/apache/pdfbox/pdmodel/PDDocumentInformation"); |
| if (_c_PDDocumentInformation == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocumentInformation, &_m_PDDocumentInformation__setTitle, |
| "setTitle", "(Ljava/lang/String;)V"); |
| if (_m_PDDocumentInformation__setTitle == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDDocumentInformation__setTitle, |
| title); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDDocumentInformation__getAuthor = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocumentInformation__getAuthor(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocumentInformation, |
| "org/apache/pdfbox/pdmodel/PDDocumentInformation"); |
| if (_c_PDDocumentInformation == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocumentInformation, &_m_PDDocumentInformation__getAuthor, |
| "getAuthor", "()Ljava/lang/String;"); |
| if (_m_PDDocumentInformation__getAuthor == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDDocumentInformation__getAuthor); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocumentInformation__setAuthor = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocumentInformation__setAuthor(jobject self_, jobject author) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocumentInformation, |
| "org/apache/pdfbox/pdmodel/PDDocumentInformation"); |
| if (_c_PDDocumentInformation == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocumentInformation, &_m_PDDocumentInformation__setAuthor, |
| "setAuthor", "(Ljava/lang/String;)V"); |
| if (_m_PDDocumentInformation__setAuthor == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDDocumentInformation__setAuthor, |
| author); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDDocumentInformation__getSubject = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocumentInformation__getSubject(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocumentInformation, |
| "org/apache/pdfbox/pdmodel/PDDocumentInformation"); |
| if (_c_PDDocumentInformation == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocumentInformation, &_m_PDDocumentInformation__getSubject, |
| "getSubject", "()Ljava/lang/String;"); |
| if (_m_PDDocumentInformation__getSubject == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDDocumentInformation__getSubject); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocumentInformation__setSubject = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocumentInformation__setSubject(jobject self_, jobject subject) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocumentInformation, |
| "org/apache/pdfbox/pdmodel/PDDocumentInformation"); |
| if (_c_PDDocumentInformation == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocumentInformation, &_m_PDDocumentInformation__setSubject, |
| "setSubject", "(Ljava/lang/String;)V"); |
| if (_m_PDDocumentInformation__setSubject == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDDocumentInformation__setSubject, |
| subject); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDDocumentInformation__getKeywords = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocumentInformation__getKeywords(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocumentInformation, |
| "org/apache/pdfbox/pdmodel/PDDocumentInformation"); |
| if (_c_PDDocumentInformation == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocumentInformation, &_m_PDDocumentInformation__getKeywords, |
| "getKeywords", "()Ljava/lang/String;"); |
| if (_m_PDDocumentInformation__getKeywords == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDDocumentInformation__getKeywords); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocumentInformation__setKeywords = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocumentInformation__setKeywords(jobject self_, jobject keywords) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocumentInformation, |
| "org/apache/pdfbox/pdmodel/PDDocumentInformation"); |
| if (_c_PDDocumentInformation == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocumentInformation, &_m_PDDocumentInformation__setKeywords, |
| "setKeywords", "(Ljava/lang/String;)V"); |
| if (_m_PDDocumentInformation__setKeywords == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, |
| _m_PDDocumentInformation__setKeywords, keywords); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDDocumentInformation__getCreator = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocumentInformation__getCreator(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocumentInformation, |
| "org/apache/pdfbox/pdmodel/PDDocumentInformation"); |
| if (_c_PDDocumentInformation == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocumentInformation, &_m_PDDocumentInformation__getCreator, |
| "getCreator", "()Ljava/lang/String;"); |
| if (_m_PDDocumentInformation__getCreator == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDDocumentInformation__getCreator); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocumentInformation__setCreator = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocumentInformation__setCreator(jobject self_, jobject creator) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocumentInformation, |
| "org/apache/pdfbox/pdmodel/PDDocumentInformation"); |
| if (_c_PDDocumentInformation == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocumentInformation, &_m_PDDocumentInformation__setCreator, |
| "setCreator", "(Ljava/lang/String;)V"); |
| if (_m_PDDocumentInformation__setCreator == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDDocumentInformation__setCreator, |
| creator); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDDocumentInformation__getProducer = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocumentInformation__getProducer(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocumentInformation, |
| "org/apache/pdfbox/pdmodel/PDDocumentInformation"); |
| if (_c_PDDocumentInformation == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocumentInformation, &_m_PDDocumentInformation__getProducer, |
| "getProducer", "()Ljava/lang/String;"); |
| if (_m_PDDocumentInformation__getProducer == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDDocumentInformation__getProducer); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocumentInformation__setProducer = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocumentInformation__setProducer(jobject self_, jobject producer) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocumentInformation, |
| "org/apache/pdfbox/pdmodel/PDDocumentInformation"); |
| if (_c_PDDocumentInformation == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocumentInformation, &_m_PDDocumentInformation__setProducer, |
| "setProducer", "(Ljava/lang/String;)V"); |
| if (_m_PDDocumentInformation__setProducer == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, |
| _m_PDDocumentInformation__setProducer, producer); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDDocumentInformation__getCreationDate = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocumentInformation__getCreationDate(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocumentInformation, |
| "org/apache/pdfbox/pdmodel/PDDocumentInformation"); |
| if (_c_PDDocumentInformation == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocumentInformation, |
| &_m_PDDocumentInformation__getCreationDate, "getCreationDate", |
| "()Ljava/util/Calendar;"); |
| if (_m_PDDocumentInformation__getCreationDate == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDDocumentInformation__getCreationDate); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocumentInformation__setCreationDate = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocumentInformation__setCreationDate(jobject self_, jobject date) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocumentInformation, |
| "org/apache/pdfbox/pdmodel/PDDocumentInformation"); |
| if (_c_PDDocumentInformation == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocumentInformation, |
| &_m_PDDocumentInformation__setCreationDate, "setCreationDate", |
| "(Ljava/util/Calendar;)V"); |
| if (_m_PDDocumentInformation__setCreationDate == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, |
| _m_PDDocumentInformation__setCreationDate, date); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDDocumentInformation__getModificationDate = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocumentInformation__getModificationDate(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocumentInformation, |
| "org/apache/pdfbox/pdmodel/PDDocumentInformation"); |
| if (_c_PDDocumentInformation == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocumentInformation, |
| &_m_PDDocumentInformation__getModificationDate, |
| "getModificationDate", "()Ljava/util/Calendar;"); |
| if (_m_PDDocumentInformation__getModificationDate == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDDocumentInformation__getModificationDate); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocumentInformation__setModificationDate = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocumentInformation__setModificationDate(jobject self_, |
| jobject date) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocumentInformation, |
| "org/apache/pdfbox/pdmodel/PDDocumentInformation"); |
| if (_c_PDDocumentInformation == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocumentInformation, |
| &_m_PDDocumentInformation__setModificationDate, |
| "setModificationDate", "(Ljava/util/Calendar;)V"); |
| if (_m_PDDocumentInformation__setModificationDate == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod( |
| jniEnv, self_, _m_PDDocumentInformation__setModificationDate, date); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDDocumentInformation__getTrapped = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocumentInformation__getTrapped(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocumentInformation, |
| "org/apache/pdfbox/pdmodel/PDDocumentInformation"); |
| if (_c_PDDocumentInformation == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocumentInformation, &_m_PDDocumentInformation__getTrapped, |
| "getTrapped", "()Ljava/lang/String;"); |
| if (_m_PDDocumentInformation__getTrapped == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDDocumentInformation__getTrapped); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocumentInformation__getMetadataKeys = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocumentInformation__getMetadataKeys(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocumentInformation, |
| "org/apache/pdfbox/pdmodel/PDDocumentInformation"); |
| if (_c_PDDocumentInformation == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocumentInformation, |
| &_m_PDDocumentInformation__getMetadataKeys, "getMetadataKeys", |
| "()Ljava/util/Set;"); |
| if (_m_PDDocumentInformation__getMetadataKeys == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDDocumentInformation__getMetadataKeys); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocumentInformation__getCustomMetadataValue = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocumentInformation__getCustomMetadataValue(jobject self_, |
| jobject fieldName) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocumentInformation, |
| "org/apache/pdfbox/pdmodel/PDDocumentInformation"); |
| if (_c_PDDocumentInformation == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocumentInformation, |
| &_m_PDDocumentInformation__getCustomMetadataValue, |
| "getCustomMetadataValue", |
| "(Ljava/lang/String;)Ljava/lang/String;"); |
| if (_m_PDDocumentInformation__getCustomMetadataValue == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDDocumentInformation__getCustomMetadataValue, |
| fieldName); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDDocumentInformation__setCustomMetadataValue = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocumentInformation__setCustomMetadataValue(jobject self_, |
| jobject fieldName, |
| jobject fieldValue) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocumentInformation, |
| "org/apache/pdfbox/pdmodel/PDDocumentInformation"); |
| if (_c_PDDocumentInformation == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocumentInformation, |
| &_m_PDDocumentInformation__setCustomMetadataValue, |
| "setCustomMetadataValue", |
| "(Ljava/lang/String;Ljava/lang/String;)V"); |
| if (_m_PDDocumentInformation__setCustomMetadataValue == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, |
| _m_PDDocumentInformation__setCustomMetadataValue, |
| fieldName, fieldValue); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDDocumentInformation__setTrapped = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDDocumentInformation__setTrapped(jobject self_, jobject value) { |
| load_env(); |
| load_class_global_ref(&_c_PDDocumentInformation, |
| "org/apache/pdfbox/pdmodel/PDDocumentInformation"); |
| if (_c_PDDocumentInformation == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDDocumentInformation, &_m_PDDocumentInformation__setTrapped, |
| "setTrapped", "(Ljava/lang/String;)V"); |
| if (_m_PDDocumentInformation__setTrapped == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDDocumentInformation__setTrapped, |
| value); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| // org.apache.pdfbox.text.PDFTextStripper |
| jclass _c_PDFTextStripper = NULL; |
| |
| jmethodID _m_PDFTextStripper__new0 = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__new0() { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__new0, "<init>", "()V"); |
| if (_m_PDFTextStripper__new0 == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->NewObject(jniEnv, _c_PDFTextStripper, |
| _m_PDFTextStripper__new0); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDFTextStripper__getText = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__getText(jobject self_, jobject doc) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__getText, "getText", |
| "(Lorg/apache/pdfbox/pdmodel/PDDocument;)Ljava/lang/String;"); |
| if (_m_PDFTextStripper__getText == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDFTextStripper__getText, doc); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDFTextStripper__writeText = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__writeText(jobject self_, |
| jobject doc, |
| jobject outputStream) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__writeText, "writeText", |
| "(Lorg/apache/pdfbox/pdmodel/PDDocument;Ljava/io/Writer;)V"); |
| if (_m_PDFTextStripper__writeText == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDFTextStripper__writeText, doc, |
| outputStream); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__processPages = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__processPages(jobject self_, jobject pages) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__processPages, |
| "processPages", "(Lorg/apache/pdfbox/pdmodel/PDPageTree;)V"); |
| if (_m_PDFTextStripper__processPages == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDFTextStripper__processPages, |
| pages); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__startDocument = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__startDocument(jobject self_, jobject document) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__startDocument, |
| "startDocument", "(Lorg/apache/pdfbox/pdmodel/PDDocument;)V"); |
| if (_m_PDFTextStripper__startDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDFTextStripper__startDocument, |
| document); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__endDocument = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__endDocument(jobject self_, jobject document) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__endDocument, |
| "endDocument", "(Lorg/apache/pdfbox/pdmodel/PDDocument;)V"); |
| if (_m_PDFTextStripper__endDocument == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDFTextStripper__endDocument, |
| document); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__processPage = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__processPage(jobject self_, jobject page) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__processPage, |
| "processPage", "(Lorg/apache/pdfbox/pdmodel/PDPage;)V"); |
| if (_m_PDFTextStripper__processPage == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDFTextStripper__processPage, |
| page); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__startArticle = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__startArticle(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__startArticle, |
| "startArticle", "()V"); |
| if (_m_PDFTextStripper__startArticle == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDFTextStripper__startArticle); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__startArticle1 = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__startArticle1(jobject self_, uint8_t isLTR) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__startArticle1, |
| "startArticle", "(Z)V"); |
| if (_m_PDFTextStripper__startArticle1 == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDFTextStripper__startArticle1, |
| isLTR); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__endArticle = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__endArticle(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__endArticle, "endArticle", |
| "()V"); |
| if (_m_PDFTextStripper__endArticle == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDFTextStripper__endArticle); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__startPage = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__startPage(jobject self_, jobject page) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__startPage, "startPage", |
| "(Lorg/apache/pdfbox/pdmodel/PDPage;)V"); |
| if (_m_PDFTextStripper__startPage == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDFTextStripper__startPage, page); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__endPage = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__endPage(jobject self_, jobject page) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__endPage, "endPage", |
| "(Lorg/apache/pdfbox/pdmodel/PDPage;)V"); |
| if (_m_PDFTextStripper__endPage == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDFTextStripper__endPage, page); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__writePage = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__writePage(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__writePage, "writePage", |
| "()V"); |
| if (_m_PDFTextStripper__writePage == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDFTextStripper__writePage); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__writeLineSeparator = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__writeLineSeparator(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__writeLineSeparator, |
| "writeLineSeparator", "()V"); |
| if (_m_PDFTextStripper__writeLineSeparator == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, |
| _m_PDFTextStripper__writeLineSeparator); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__writeWordSeparator = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__writeWordSeparator(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__writeWordSeparator, |
| "writeWordSeparator", "()V"); |
| if (_m_PDFTextStripper__writeWordSeparator == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, |
| _m_PDFTextStripper__writeWordSeparator); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__writeCharacters = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__writeCharacters(jobject self_, jobject text) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__writeCharacters, |
| "writeCharacters", "(Lorg/apache/pdfbox/text/TextPosition;)V"); |
| if (_m_PDFTextStripper__writeCharacters == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDFTextStripper__writeCharacters, |
| text); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__writeString = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__writeString(jobject self_, |
| jobject text, |
| jobject textPositions) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__writeString, |
| "writeString", "(Ljava/lang/String;Ljava/util/List;)V"); |
| if (_m_PDFTextStripper__writeString == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDFTextStripper__writeString, |
| text, textPositions); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__writeString1 = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__writeString1(jobject self_, jobject text) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__writeString1, |
| "writeString", "(Ljava/lang/String;)V"); |
| if (_m_PDFTextStripper__writeString1 == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDFTextStripper__writeString1, |
| text); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__processTextPosition = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__processTextPosition(jobject self_, jobject text) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__processTextPosition, |
| "processTextPosition", |
| "(Lorg/apache/pdfbox/text/TextPosition;)V"); |
| if (_m_PDFTextStripper__processTextPosition == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, |
| _m_PDFTextStripper__processTextPosition, text); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__getStartPage = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__getStartPage(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__getStartPage, |
| "getStartPage", "()I"); |
| if (_m_PDFTextStripper__getStartPage == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| int32_t _result = |
| (*jniEnv)->CallIntMethod(jniEnv, self_, _m_PDFTextStripper__getStartPage); |
| return (JniResult){.value = {.i = _result}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__setStartPage = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__setStartPage(jobject self_, int32_t startPageValue) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__setStartPage, |
| "setStartPage", "(I)V"); |
| if (_m_PDFTextStripper__setStartPage == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDFTextStripper__setStartPage, |
| startPageValue); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__getEndPage = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__getEndPage(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__getEndPage, "getEndPage", |
| "()I"); |
| if (_m_PDFTextStripper__getEndPage == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| int32_t _result = |
| (*jniEnv)->CallIntMethod(jniEnv, self_, _m_PDFTextStripper__getEndPage); |
| return (JniResult){.value = {.i = _result}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__setEndPage = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__setEndPage(jobject self_, int32_t endPageValue) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__setEndPage, "setEndPage", |
| "(I)V"); |
| if (_m_PDFTextStripper__setEndPage == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDFTextStripper__setEndPage, |
| endPageValue); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__setLineSeparator = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__setLineSeparator(jobject self_, jobject separator) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__setLineSeparator, |
| "setLineSeparator", "(Ljava/lang/String;)V"); |
| if (_m_PDFTextStripper__setLineSeparator == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDFTextStripper__setLineSeparator, |
| separator); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__getLineSeparator = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__getLineSeparator(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__getLineSeparator, |
| "getLineSeparator", "()Ljava/lang/String;"); |
| if (_m_PDFTextStripper__getLineSeparator == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDFTextStripper__getLineSeparator); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDFTextStripper__getWordSeparator = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__getWordSeparator(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__getWordSeparator, |
| "getWordSeparator", "()Ljava/lang/String;"); |
| if (_m_PDFTextStripper__getWordSeparator == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDFTextStripper__getWordSeparator); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDFTextStripper__setWordSeparator = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__setWordSeparator(jobject self_, jobject separator) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__setWordSeparator, |
| "setWordSeparator", "(Ljava/lang/String;)V"); |
| if (_m_PDFTextStripper__setWordSeparator == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDFTextStripper__setWordSeparator, |
| separator); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__getSuppressDuplicateOverlappingText = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__getSuppressDuplicateOverlappingText(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, |
| &_m_PDFTextStripper__getSuppressDuplicateOverlappingText, |
| "getSuppressDuplicateOverlappingText", "()Z"); |
| if (_m_PDFTextStripper__getSuppressDuplicateOverlappingText == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| uint8_t _result = (*jniEnv)->CallBooleanMethod( |
| jniEnv, self_, _m_PDFTextStripper__getSuppressDuplicateOverlappingText); |
| return (JniResult){.value = {.z = _result}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__getCurrentPageNo = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__getCurrentPageNo(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__getCurrentPageNo, |
| "getCurrentPageNo", "()I"); |
| if (_m_PDFTextStripper__getCurrentPageNo == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| int32_t _result = (*jniEnv)->CallIntMethod( |
| jniEnv, self_, _m_PDFTextStripper__getCurrentPageNo); |
| return (JniResult){.value = {.i = _result}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__getOutput = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__getOutput(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__getOutput, "getOutput", |
| "()Ljava/io/Writer;"); |
| if (_m_PDFTextStripper__getOutput == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = |
| (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_PDFTextStripper__getOutput); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDFTextStripper__getCharactersByArticle = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__getCharactersByArticle(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__getCharactersByArticle, |
| "getCharactersByArticle", "()Ljava/util/List;"); |
| if (_m_PDFTextStripper__getCharactersByArticle == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDFTextStripper__getCharactersByArticle); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDFTextStripper__setSuppressDuplicateOverlappingText = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__setSuppressDuplicateOverlappingText( |
| jobject self_, |
| uint8_t suppressDuplicateOverlappingTextValue) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, |
| &_m_PDFTextStripper__setSuppressDuplicateOverlappingText, |
| "setSuppressDuplicateOverlappingText", "(Z)V"); |
| if (_m_PDFTextStripper__setSuppressDuplicateOverlappingText == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod( |
| jniEnv, self_, _m_PDFTextStripper__setSuppressDuplicateOverlappingText, |
| suppressDuplicateOverlappingTextValue); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__getSeparateByBeads = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__getSeparateByBeads(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__getSeparateByBeads, |
| "getSeparateByBeads", "()Z"); |
| if (_m_PDFTextStripper__getSeparateByBeads == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| uint8_t _result = (*jniEnv)->CallBooleanMethod( |
| jniEnv, self_, _m_PDFTextStripper__getSeparateByBeads); |
| return (JniResult){.value = {.z = _result}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__setShouldSeparateByBeads = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__setShouldSeparateByBeads( |
| jobject self_, |
| uint8_t aShouldSeparateByBeads) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__setShouldSeparateByBeads, |
| "setShouldSeparateByBeads", "(Z)V"); |
| if (_m_PDFTextStripper__setShouldSeparateByBeads == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, |
| _m_PDFTextStripper__setShouldSeparateByBeads, |
| aShouldSeparateByBeads); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__getEndBookmark = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__getEndBookmark(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__getEndBookmark, |
| "getEndBookmark", |
| "()Lorg/apache/pdfbox/pdmodel/interactive/documentnavigation/" |
| "outline/PDOutlineItem;"); |
| if (_m_PDFTextStripper__getEndBookmark == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDFTextStripper__getEndBookmark); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDFTextStripper__setEndBookmark = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__setEndBookmark(jobject self_, jobject aEndBookmark) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__setEndBookmark, |
| "setEndBookmark", |
| "(Lorg/apache/pdfbox/pdmodel/interactive/documentnavigation/" |
| "outline/PDOutlineItem;)V"); |
| if (_m_PDFTextStripper__setEndBookmark == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDFTextStripper__setEndBookmark, |
| aEndBookmark); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__getStartBookmark = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__getStartBookmark(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__getStartBookmark, |
| "getStartBookmark", |
| "()Lorg/apache/pdfbox/pdmodel/interactive/documentnavigation/" |
| "outline/PDOutlineItem;"); |
| if (_m_PDFTextStripper__getStartBookmark == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDFTextStripper__getStartBookmark); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDFTextStripper__setStartBookmark = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__setStartBookmark(jobject self_, |
| jobject aStartBookmark) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__setStartBookmark, |
| "setStartBookmark", |
| "(Lorg/apache/pdfbox/pdmodel/interactive/documentnavigation/" |
| "outline/PDOutlineItem;)V"); |
| if (_m_PDFTextStripper__setStartBookmark == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDFTextStripper__setStartBookmark, |
| aStartBookmark); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__getAddMoreFormatting = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__getAddMoreFormatting(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__getAddMoreFormatting, |
| "getAddMoreFormatting", "()Z"); |
| if (_m_PDFTextStripper__getAddMoreFormatting == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| uint8_t _result = (*jniEnv)->CallBooleanMethod( |
| jniEnv, self_, _m_PDFTextStripper__getAddMoreFormatting); |
| return (JniResult){.value = {.z = _result}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__setAddMoreFormatting = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__setAddMoreFormatting(jobject self_, |
| uint8_t newAddMoreFormatting) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__setAddMoreFormatting, |
| "setAddMoreFormatting", "(Z)V"); |
| if (_m_PDFTextStripper__setAddMoreFormatting == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, |
| _m_PDFTextStripper__setAddMoreFormatting, |
| newAddMoreFormatting); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__getSortByPosition = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__getSortByPosition(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__getSortByPosition, |
| "getSortByPosition", "()Z"); |
| if (_m_PDFTextStripper__getSortByPosition == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| uint8_t _result = (*jniEnv)->CallBooleanMethod( |
| jniEnv, self_, _m_PDFTextStripper__getSortByPosition); |
| return (JniResult){.value = {.z = _result}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__setSortByPosition = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__setSortByPosition(jobject self_, |
| uint8_t newSortByPosition) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__setSortByPosition, |
| "setSortByPosition", "(Z)V"); |
| if (_m_PDFTextStripper__setSortByPosition == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod( |
| jniEnv, self_, _m_PDFTextStripper__setSortByPosition, newSortByPosition); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__getSpacingTolerance = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__getSpacingTolerance(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__getSpacingTolerance, |
| "getSpacingTolerance", "()F"); |
| if (_m_PDFTextStripper__getSpacingTolerance == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| float _result = (*jniEnv)->CallFloatMethod( |
| jniEnv, self_, _m_PDFTextStripper__getSpacingTolerance); |
| return (JniResult){.value = {.f = _result}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__setSpacingTolerance = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__setSpacingTolerance(jobject self_, |
| float spacingToleranceValue) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__setSpacingTolerance, |
| "setSpacingTolerance", "(F)V"); |
| if (_m_PDFTextStripper__setSpacingTolerance == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, |
| _m_PDFTextStripper__setSpacingTolerance, |
| spacingToleranceValue); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__getAverageCharTolerance = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__getAverageCharTolerance(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__getAverageCharTolerance, |
| "getAverageCharTolerance", "()F"); |
| if (_m_PDFTextStripper__getAverageCharTolerance == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| float _result = (*jniEnv)->CallFloatMethod( |
| jniEnv, self_, _m_PDFTextStripper__getAverageCharTolerance); |
| return (JniResult){.value = {.f = _result}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__setAverageCharTolerance = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__setAverageCharTolerance( |
| jobject self_, |
| float averageCharToleranceValue) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__setAverageCharTolerance, |
| "setAverageCharTolerance", "(F)V"); |
| if (_m_PDFTextStripper__setAverageCharTolerance == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, |
| _m_PDFTextStripper__setAverageCharTolerance, |
| averageCharToleranceValue); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__getIndentThreshold = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__getIndentThreshold(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__getIndentThreshold, |
| "getIndentThreshold", "()F"); |
| if (_m_PDFTextStripper__getIndentThreshold == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| float _result = (*jniEnv)->CallFloatMethod( |
| jniEnv, self_, _m_PDFTextStripper__getIndentThreshold); |
| return (JniResult){.value = {.f = _result}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__setIndentThreshold = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__setIndentThreshold(jobject self_, |
| float indentThresholdValue) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__setIndentThreshold, |
| "setIndentThreshold", "(F)V"); |
| if (_m_PDFTextStripper__setIndentThreshold == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, |
| _m_PDFTextStripper__setIndentThreshold, |
| indentThresholdValue); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__getDropThreshold = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__getDropThreshold(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__getDropThreshold, |
| "getDropThreshold", "()F"); |
| if (_m_PDFTextStripper__getDropThreshold == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| float _result = (*jniEnv)->CallFloatMethod( |
| jniEnv, self_, _m_PDFTextStripper__getDropThreshold); |
| return (JniResult){.value = {.f = _result}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__setDropThreshold = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__setDropThreshold(jobject self_, |
| float dropThresholdValue) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__setDropThreshold, |
| "setDropThreshold", "(F)V"); |
| if (_m_PDFTextStripper__setDropThreshold == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDFTextStripper__setDropThreshold, |
| dropThresholdValue); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__getParagraphStart = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__getParagraphStart(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__getParagraphStart, |
| "getParagraphStart", "()Ljava/lang/String;"); |
| if (_m_PDFTextStripper__getParagraphStart == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDFTextStripper__getParagraphStart); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDFTextStripper__setParagraphStart = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__setParagraphStart(jobject self_, jobject s) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__setParagraphStart, |
| "setParagraphStart", "(Ljava/lang/String;)V"); |
| if (_m_PDFTextStripper__setParagraphStart == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, |
| _m_PDFTextStripper__setParagraphStart, s); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__getParagraphEnd = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__getParagraphEnd(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__getParagraphEnd, |
| "getParagraphEnd", "()Ljava/lang/String;"); |
| if (_m_PDFTextStripper__getParagraphEnd == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDFTextStripper__getParagraphEnd); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDFTextStripper__setParagraphEnd = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__setParagraphEnd(jobject self_, jobject s) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__setParagraphEnd, |
| "setParagraphEnd", "(Ljava/lang/String;)V"); |
| if (_m_PDFTextStripper__setParagraphEnd == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDFTextStripper__setParagraphEnd, |
| s); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__getPageStart = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__getPageStart(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__getPageStart, |
| "getPageStart", "()Ljava/lang/String;"); |
| if (_m_PDFTextStripper__getPageStart == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDFTextStripper__getPageStart); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDFTextStripper__setPageStart = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__setPageStart(jobject self_, jobject pageStartValue) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__setPageStart, |
| "setPageStart", "(Ljava/lang/String;)V"); |
| if (_m_PDFTextStripper__setPageStart == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDFTextStripper__setPageStart, |
| pageStartValue); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__getPageEnd = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__getPageEnd(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__getPageEnd, "getPageEnd", |
| "()Ljava/lang/String;"); |
| if (_m_PDFTextStripper__getPageEnd == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, |
| _m_PDFTextStripper__getPageEnd); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDFTextStripper__setPageEnd = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__setPageEnd(jobject self_, jobject pageEndValue) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__setPageEnd, "setPageEnd", |
| "(Ljava/lang/String;)V"); |
| if (_m_PDFTextStripper__setPageEnd == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDFTextStripper__setPageEnd, |
| pageEndValue); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__getArticleStart = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__getArticleStart(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__getArticleStart, |
| "getArticleStart", "()Ljava/lang/String;"); |
| if (_m_PDFTextStripper__getArticleStart == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDFTextStripper__getArticleStart); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDFTextStripper__setArticleStart = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__setArticleStart(jobject self_, |
| jobject articleStartValue) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__setArticleStart, |
| "setArticleStart", "(Ljava/lang/String;)V"); |
| if (_m_PDFTextStripper__setArticleStart == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDFTextStripper__setArticleStart, |
| articleStartValue); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__getArticleEnd = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__getArticleEnd(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__getArticleEnd, |
| "getArticleEnd", "()Ljava/lang/String;"); |
| if (_m_PDFTextStripper__getArticleEnd == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDFTextStripper__getArticleEnd); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDFTextStripper__setArticleEnd = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__setArticleEnd(jobject self_, |
| jobject articleEndValue) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__setArticleEnd, |
| "setArticleEnd", "(Ljava/lang/String;)V"); |
| if (_m_PDFTextStripper__setArticleEnd == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDFTextStripper__setArticleEnd, |
| articleEndValue); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__writeParagraphSeparator = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__writeParagraphSeparator(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__writeParagraphSeparator, |
| "writeParagraphSeparator", "()V"); |
| if (_m_PDFTextStripper__writeParagraphSeparator == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, |
| _m_PDFTextStripper__writeParagraphSeparator); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__writeParagraphStart = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__writeParagraphStart(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__writeParagraphStart, |
| "writeParagraphStart", "()V"); |
| if (_m_PDFTextStripper__writeParagraphStart == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, |
| _m_PDFTextStripper__writeParagraphStart); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__writeParagraphEnd = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__writeParagraphEnd(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__writeParagraphEnd, |
| "writeParagraphEnd", "()V"); |
| if (_m_PDFTextStripper__writeParagraphEnd == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, |
| _m_PDFTextStripper__writeParagraphEnd); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__writePageStart = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__writePageStart(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__writePageStart, |
| "writePageStart", "()V"); |
| if (_m_PDFTextStripper__writePageStart == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDFTextStripper__writePageStart); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__writePageEnd = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__writePageEnd(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__writePageEnd, |
| "writePageEnd", "()V"); |
| if (_m_PDFTextStripper__writePageEnd == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDFTextStripper__writePageEnd); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__setListItemPatterns = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__setListItemPatterns(jobject self_, |
| jobject patterns) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__setListItemPatterns, |
| "setListItemPatterns", "(Ljava/util/List;)V"); |
| if (_m_PDFTextStripper__setListItemPatterns == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| (*jniEnv)->CallVoidMethod(jniEnv, self_, |
| _m_PDFTextStripper__setListItemPatterns, patterns); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jmethodID _m_PDFTextStripper__getListItemPatterns = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__getListItemPatterns(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_method(_c_PDFTextStripper, &_m_PDFTextStripper__getListItemPatterns, |
| "getListItemPatterns", "()Ljava/util/List;"); |
| if (_m_PDFTextStripper__getListItemPatterns == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallObjectMethod( |
| jniEnv, self_, _m_PDFTextStripper__getListItemPatterns); |
| return to_global_ref_result(_result); |
| } |
| |
| jmethodID _m_PDFTextStripper__matchPattern = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult PDFTextStripper__matchPattern(jobject string, jobject patterns) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_static_method( |
| _c_PDFTextStripper, &_m_PDFTextStripper__matchPattern, "matchPattern", |
| "(Ljava/lang/String;Ljava/util/List;)Ljava/util/regex/Pattern;"); |
| if (_m_PDFTextStripper__matchPattern == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| jobject _result = (*jniEnv)->CallStaticObjectMethod( |
| jniEnv, _c_PDFTextStripper, _m_PDFTextStripper__matchPattern, string, |
| patterns); |
| return to_global_ref_result(_result); |
| } |
| |
| jfieldID _f_PDFTextStripper__LINE_SEPARATOR = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult get_PDFTextStripper__LINE_SEPARATOR(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_field(_c_PDFTextStripper, &_f_PDFTextStripper__LINE_SEPARATOR, |
| "LINE_SEPARATOR", "Ljava/lang/String;"); |
| jobject _result = (*jniEnv)->GetObjectField( |
| jniEnv, self_, _f_PDFTextStripper__LINE_SEPARATOR); |
| return to_global_ref_result(_result); |
| } |
| |
| jfieldID _f_PDFTextStripper__charactersByArticle = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult get_PDFTextStripper__charactersByArticle(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_field(_c_PDFTextStripper, &_f_PDFTextStripper__charactersByArticle, |
| "charactersByArticle", "Ljava/util/ArrayList;"); |
| jobject _result = (*jniEnv)->GetObjectField( |
| jniEnv, self_, _f_PDFTextStripper__charactersByArticle); |
| return to_global_ref_result(_result); |
| } |
| |
| FFI_PLUGIN_EXPORT |
| JniResult set_PDFTextStripper__charactersByArticle(jobject self_, |
| jobject value) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_field(_c_PDFTextStripper, &_f_PDFTextStripper__charactersByArticle, |
| "charactersByArticle", "Ljava/util/ArrayList;"); |
| (*jniEnv)->SetObjectField(jniEnv, self_, |
| _f_PDFTextStripper__charactersByArticle, value); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jfieldID _f_PDFTextStripper__document = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult get_PDFTextStripper__document(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_field(_c_PDFTextStripper, &_f_PDFTextStripper__document, "document", |
| "Lorg/apache/pdfbox/pdmodel/PDDocument;"); |
| jobject _result = |
| (*jniEnv)->GetObjectField(jniEnv, self_, _f_PDFTextStripper__document); |
| return to_global_ref_result(_result); |
| } |
| |
| FFI_PLUGIN_EXPORT |
| JniResult set_PDFTextStripper__document(jobject self_, jobject value) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_field(_c_PDFTextStripper, &_f_PDFTextStripper__document, "document", |
| "Lorg/apache/pdfbox/pdmodel/PDDocument;"); |
| (*jniEnv)->SetObjectField(jniEnv, self_, _f_PDFTextStripper__document, value); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |
| |
| jfieldID _f_PDFTextStripper__output = NULL; |
| FFI_PLUGIN_EXPORT |
| JniResult get_PDFTextStripper__output(jobject self_) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_field(_c_PDFTextStripper, &_f_PDFTextStripper__output, "output", |
| "Ljava/io/Writer;"); |
| jobject _result = |
| (*jniEnv)->GetObjectField(jniEnv, self_, _f_PDFTextStripper__output); |
| return to_global_ref_result(_result); |
| } |
| |
| FFI_PLUGIN_EXPORT |
| JniResult set_PDFTextStripper__output(jobject self_, jobject value) { |
| load_env(); |
| load_class_global_ref(&_c_PDFTextStripper, |
| "org/apache/pdfbox/text/PDFTextStripper"); |
| if (_c_PDFTextStripper == NULL) |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| load_field(_c_PDFTextStripper, &_f_PDFTextStripper__output, "output", |
| "Ljava/io/Writer;"); |
| (*jniEnv)->SetObjectField(jniEnv, self_, _f_PDFTextStripper__output, value); |
| return (JniResult){.value = {.j = 0}, .exception = check_exception()}; |
| } |