[jnigen] Summarizer fix (https://github.com/dart-lang/jnigen/issues/116)

diff --git a/pkgs/jnigen/example/in_app_java/android/app/src/main/java/com/example/in_app_java/AndroidUtils.java b/pkgs/jnigen/example/in_app_java/android/app/src/main/java/com/example/in_app_java/AndroidUtils.java
index a998516..84be6f1 100644
--- a/pkgs/jnigen/example/in_app_java/android/app/src/main/java/com/example/in_app_java/AndroidUtils.java
+++ b/pkgs/jnigen/example/in_app_java/android/app/src/main/java/com/example/in_app_java/AndroidUtils.java
@@ -9,8 +9,11 @@
 import androidx.annotation.Keep;
 
 @Keep
-public class AndroidUtils {
-  static void showToast(Activity mainActivity, CharSequence text, int duration) {
+public abstract class AndroidUtils {
+  // Hide constructor
+  private AndroidUtils() {}
+
+  public static void showToast(Activity mainActivity, CharSequence text, int duration) {
     mainActivity.runOnUiThread(() -> Toast.makeText(mainActivity, text, duration).show());
   }
 }
diff --git a/pkgs/jnigen/example/in_app_java/lib/android_utils.dart b/pkgs/jnigen/example/in_app_java/lib/android_utils.dart
index e83f716..2bb369a 100644
--- a/pkgs/jnigen/example/in_app_java/lib/android_utils.dart
+++ b/pkgs/jnigen/example/in_app_java/lib/android_utils.dart
@@ -22,13 +22,6 @@
 class AndroidUtils extends jni.JniObject {
   AndroidUtils.fromRef(ffi.Pointer<ffi.Void> ref) : super.fromRef(ref);
 
-  static final _ctor = jniLookup<ffi.NativeFunction<jni.JniResult Function()>>(
-          "AndroidUtils__ctor")
-      .asFunction<jni.JniResult Function()>();
-
-  /// from: public void <init>()
-  AndroidUtils() : super.fromRef(_ctor().object);
-
   static final _showToast = jniLookup<
           ffi.NativeFunction<
               jni.JniResult Function(ffi.Pointer<ffi.Void>,
@@ -37,7 +30,7 @@
           jni.JniResult Function(
               ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, int)>();
 
-  /// from: static void showToast(android.app.Activity mainActivity, java.lang.CharSequence text, int duration)
+  /// from: static public void showToast(android.app.Activity mainActivity, java.lang.CharSequence text, int duration)
   static void showToast(
           jni.JniObject mainActivity, jni.JniObject text, int duration) =>
       _showToast(mainActivity.reference, text.reference, duration).check();
diff --git a/pkgs/jnigen/example/in_app_java/src/android_utils/android_utils.c b/pkgs/jnigen/example/in_app_java/src/android_utils/android_utils.c
index c2e9ced..b1e887a 100644
--- a/pkgs/jnigen/example/in_app_java/src/android_utils/android_utils.c
+++ b/pkgs/jnigen/example/in_app_java/src/android_utils/android_utils.c
@@ -18,22 +18,6 @@
 // com.example.in_app_java.AndroidUtils
 jclass _c_AndroidUtils = NULL;
 
-jmethodID _m_AndroidUtils__ctor = NULL;
-FFI_PLUGIN_EXPORT
-JniResult AndroidUtils__ctor() {
-  load_env();
-  load_class_gr(&_c_AndroidUtils, "com/example/in_app_java/AndroidUtils");
-  if (_c_AndroidUtils == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_method(_c_AndroidUtils, &_m_AndroidUtils__ctor, "<init>", "()V");
-  if (_m_AndroidUtils__ctor == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  jobject _result =
-      (*jniEnv)->NewObject(jniEnv, _c_AndroidUtils, _m_AndroidUtils__ctor);
-  return (JniResult){.result = {.l = to_global_ref(_result)},
-                     .exception = check_exception()};
-}
-
 jmethodID _m_AndroidUtils__showToast = NULL;
 FFI_PLUGIN_EXPORT
 JniResult AndroidUtils__showToast(jobject mainActivity,
diff --git a/pkgs/jnigen/example/pdfbox_plugin/dart_example/bin/pdf_info.dart b/pkgs/jnigen/example/pdfbox_plugin/dart_example/bin/pdf_info.dart
index 2788dce..5dfd585 100644
--- a/pkgs/jnigen/example/pdfbox_plugin/dart_example/bin/pdf_info.dart
+++ b/pkgs/jnigen/example/pdfbox_plugin/dart_example/bin/pdf_info.dart
@@ -12,7 +12,7 @@
 void writeInfo(String file) {
   final inputFile = Jni.newInstance(
       "java/io/FileInputStream", "(Ljava/lang/String;)V", [file]);
-  final pdDoc = PDDocument.load7(inputFile);
+  final pdDoc = PDDocument.load6(inputFile);
   int pages = pdDoc.getNumberOfPages();
   final info = pdDoc.getDocumentInformation();
   final title = info.getTitle();
diff --git a/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/pdmodel/PDDocument.dart b/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/pdmodel/PDDocument.dart
index fb5a3c0..57505e3 100644
--- a/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/pdmodel/PDDocument.dart
+++ b/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/pdmodel/PDDocument.dart
@@ -42,346 +42,6 @@
 class PDDocument extends jni.JniObject {
   PDDocument.fromRef(ffi.Pointer<ffi.Void> ref) : super.fromRef(ref);
 
-  static final _get_RESERVE_BYTE_RANGE =
-      jniLookup<ffi.NativeFunction<jni.JniResult Function()>>(
-              "get_PDDocument__RESERVE_BYTE_RANGE")
-          .asFunction<jni.JniResult Function()>();
-
-  /// from: private static final int[] RESERVE_BYTE_RANGE
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  ///
-  /// For signing: large reserve byte range used as placeholder in the saved PDF until the actual
-  /// length of the PDF is known. You'll need to fetch (with
-  /// PDSignature\#getByteRange() ) and reassign this yourself (with
-  /// PDSignature\#setByteRange(int[]) ) only if you call
-  /// \#saveIncrementalForExternalSigning(java.io.OutputStream) saveIncrementalForExternalSigning()
-  /// twice.
-  static jni.JniObject get RESERVE_BYTE_RANGE =>
-      jni.JniObject.fromRef(_get_RESERVE_BYTE_RANGE().object);
-
-  static final _get_LOG =
-      jniLookup<ffi.NativeFunction<jni.JniResult Function()>>(
-              "get_PDDocument__LOG")
-          .asFunction<jni.JniResult Function()>();
-
-  /// from: private static final org.apache.commons.logging.Log LOG
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  static jni.JniObject get LOG => jni.JniObject.fromRef(_get_LOG().object);
-
-  static final _get_document = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDDocument__document")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private final org.apache.pdfbox.cos.COSDocument document
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  jni.JniObject get document =>
-      jni.JniObject.fromRef(_get_document(reference).object);
-
-  static final _get_documentInformation = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDDocument__documentInformation")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private org.apache.pdfbox.pdmodel.PDDocumentInformation documentInformation
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  pddocumentinformation_.PDDocumentInformation get documentInformation =>
-      pddocumentinformation_.PDDocumentInformation.fromRef(
-          _get_documentInformation(reference).object);
-  static final _set_documentInformation = jniLookup<
-              ffi.NativeFunction<
-                  jni.JThrowable Function(jni.JObject, ffi.Pointer<ffi.Void>)>>(
-          "set_PDDocument__documentInformation")
-      .asFunction<
-          jni.JThrowable Function(jni.JObject, ffi.Pointer<ffi.Void>)>();
-
-  /// from: private org.apache.pdfbox.pdmodel.PDDocumentInformation documentInformation
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  set documentInformation(pddocumentinformation_.PDDocumentInformation value) =>
-      _set_documentInformation(reference, value.reference);
-
-  static final _get_documentCatalog = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDDocument__documentCatalog")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private org.apache.pdfbox.pdmodel.PDDocumentCatalog documentCatalog
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  jni.JniObject get documentCatalog =>
-      jni.JniObject.fromRef(_get_documentCatalog(reference).object);
-  static final _set_documentCatalog = jniLookup<
-          ffi.NativeFunction<
-              jni.JThrowable Function(jni.JObject,
-                  ffi.Pointer<ffi.Void>)>>("set_PDDocument__documentCatalog")
-      .asFunction<
-          jni.JThrowable Function(jni.JObject, ffi.Pointer<ffi.Void>)>();
-
-  /// from: private org.apache.pdfbox.pdmodel.PDDocumentCatalog documentCatalog
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  set documentCatalog(jni.JniObject value) =>
-      _set_documentCatalog(reference, value.reference);
-
-  static final _get_encryption = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDDocument__encryption")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private org.apache.pdfbox.pdmodel.encryption.PDEncryption encryption
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  jni.JniObject get encryption =>
-      jni.JniObject.fromRef(_get_encryption(reference).object);
-  static final _set_encryption = jniLookup<
-          ffi.NativeFunction<
-              jni.JThrowable Function(jni.JObject,
-                  ffi.Pointer<ffi.Void>)>>("set_PDDocument__encryption")
-      .asFunction<
-          jni.JThrowable Function(jni.JObject, ffi.Pointer<ffi.Void>)>();
-
-  /// from: private org.apache.pdfbox.pdmodel.encryption.PDEncryption encryption
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  set encryption(jni.JniObject value) =>
-      _set_encryption(reference, value.reference);
-
-  static final _get_allSecurityToBeRemoved = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDDocument__allSecurityToBeRemoved")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private boolean allSecurityToBeRemoved
-  bool get allSecurityToBeRemoved =>
-      _get_allSecurityToBeRemoved(reference).boolean;
-  static final _set_allSecurityToBeRemoved = jniLookup<
-          ffi.NativeFunction<
-              jni.JThrowable Function(jni.JObject,
-                  ffi.Uint8)>>("set_PDDocument__allSecurityToBeRemoved")
-      .asFunction<jni.JThrowable Function(jni.JObject, int)>();
-
-  /// from: private boolean allSecurityToBeRemoved
-  set allSecurityToBeRemoved(bool value) =>
-      _set_allSecurityToBeRemoved(reference, value ? 1 : 0);
-
-  static final _get_documentId = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDDocument__documentId")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private java.lang.Long documentId
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  jni.JniObject get documentId =>
-      jni.JniObject.fromRef(_get_documentId(reference).object);
-  static final _set_documentId = jniLookup<
-          ffi.NativeFunction<
-              jni.JThrowable Function(jni.JObject,
-                  ffi.Pointer<ffi.Void>)>>("set_PDDocument__documentId")
-      .asFunction<
-          jni.JThrowable Function(jni.JObject, ffi.Pointer<ffi.Void>)>();
-
-  /// from: private java.lang.Long documentId
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  set documentId(jni.JniObject value) =>
-      _set_documentId(reference, value.reference);
-
-  static final _get_pdfSource = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDDocument__pdfSource")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private final org.apache.pdfbox.io.RandomAccessRead pdfSource
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  jni.JniObject get pdfSource =>
-      jni.JniObject.fromRef(_get_pdfSource(reference).object);
-
-  static final _get_accessPermission = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDDocument__accessPermission")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private org.apache.pdfbox.pdmodel.encryption.AccessPermission accessPermission
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  jni.JniObject get accessPermission =>
-      jni.JniObject.fromRef(_get_accessPermission(reference).object);
-  static final _set_accessPermission = jniLookup<
-          ffi.NativeFunction<
-              jni.JThrowable Function(jni.JObject,
-                  ffi.Pointer<ffi.Void>)>>("set_PDDocument__accessPermission")
-      .asFunction<
-          jni.JThrowable Function(jni.JObject, ffi.Pointer<ffi.Void>)>();
-
-  /// from: private org.apache.pdfbox.pdmodel.encryption.AccessPermission accessPermission
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  set accessPermission(jni.JniObject value) =>
-      _set_accessPermission(reference, value.reference);
-
-  static final _get_fontsToSubset = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDDocument__fontsToSubset")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private final java.util.Set<org.apache.pdfbox.pdmodel.font.PDFont> fontsToSubset
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  jni.JniObject get fontsToSubset =>
-      jni.JniObject.fromRef(_get_fontsToSubset(reference).object);
-
-  static final _get_fontsToClose = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDDocument__fontsToClose")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private final java.util.Set<org.apache.fontbox.ttf.TrueTypeFont> fontsToClose
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  jni.JniObject get fontsToClose =>
-      jni.JniObject.fromRef(_get_fontsToClose(reference).object);
-
-  static final _get_signInterface = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDDocument__signInterface")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private org.apache.pdfbox.pdmodel.interactive.digitalsignature.SignatureInterface signInterface
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  jni.JniObject get signInterface =>
-      jni.JniObject.fromRef(_get_signInterface(reference).object);
-  static final _set_signInterface = jniLookup<
-          ffi.NativeFunction<
-              jni.JThrowable Function(jni.JObject,
-                  ffi.Pointer<ffi.Void>)>>("set_PDDocument__signInterface")
-      .asFunction<
-          jni.JThrowable Function(jni.JObject, ffi.Pointer<ffi.Void>)>();
-
-  /// from: private org.apache.pdfbox.pdmodel.interactive.digitalsignature.SignatureInterface signInterface
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  set signInterface(jni.JniObject value) =>
-      _set_signInterface(reference, value.reference);
-
-  static final _get_signingSupport = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDDocument__signingSupport")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private org.apache.pdfbox.pdmodel.interactive.digitalsignature.SigningSupport signingSupport
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  jni.JniObject get signingSupport =>
-      jni.JniObject.fromRef(_get_signingSupport(reference).object);
-  static final _set_signingSupport = jniLookup<
-          ffi.NativeFunction<
-              jni.JThrowable Function(jni.JObject,
-                  ffi.Pointer<ffi.Void>)>>("set_PDDocument__signingSupport")
-      .asFunction<
-          jni.JThrowable Function(jni.JObject, ffi.Pointer<ffi.Void>)>();
-
-  /// from: private org.apache.pdfbox.pdmodel.interactive.digitalsignature.SigningSupport signingSupport
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  set signingSupport(jni.JniObject value) =>
-      _set_signingSupport(reference, value.reference);
-
-  static final _get_resourceCache = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDDocument__resourceCache")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private org.apache.pdfbox.pdmodel.ResourceCache resourceCache
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  jni.JniObject get resourceCache =>
-      jni.JniObject.fromRef(_get_resourceCache(reference).object);
-  static final _set_resourceCache = jniLookup<
-          ffi.NativeFunction<
-              jni.JThrowable Function(jni.JObject,
-                  ffi.Pointer<ffi.Void>)>>("set_PDDocument__resourceCache")
-      .asFunction<
-          jni.JThrowable Function(jni.JObject, ffi.Pointer<ffi.Void>)>();
-
-  /// from: private org.apache.pdfbox.pdmodel.ResourceCache resourceCache
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  set resourceCache(jni.JniObject value) =>
-      _set_resourceCache(reference, value.reference);
-
-  static final _get_signatureAdded = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDDocument__signatureAdded")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private boolean signatureAdded
-  bool get signatureAdded => _get_signatureAdded(reference).boolean;
-  static final _set_signatureAdded = jniLookup<
-          ffi.NativeFunction<
-              jni.JThrowable Function(
-                  jni.JObject, ffi.Uint8)>>("set_PDDocument__signatureAdded")
-      .asFunction<jni.JThrowable Function(jni.JObject, int)>();
-
-  /// from: private boolean signatureAdded
-  set signatureAdded(bool value) =>
-      _set_signatureAdded(reference, value ? 1 : 0);
-
   static final _ctor = jniLookup<ffi.NativeFunction<jni.JniResult Function()>>(
           "PDDocument__ctor")
       .asFunction<jni.JniResult Function()>();
@@ -582,152 +242,6 @@
               signatureInterface.reference, options.reference)
           .check();
 
-  static final _findSignatureField = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-                  ffi.Pointer<ffi.Void>,
-                  ffi.Pointer<ffi.Void>,
-                  ffi.Pointer<ffi.Void>)>>("PDDocument__findSignatureField")
-      .asFunction<
-          jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>,
-              ffi.Pointer<ffi.Void>)>();
-
-  /// from: private org.apache.pdfbox.pdmodel.interactive.form.PDSignatureField findSignatureField(java.util.Iterator<org.apache.pdfbox.pdmodel.interactive.form.PDField> fieldIterator, org.apache.pdfbox.pdmodel.interactive.digitalsignature.PDSignature sigObject)
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  ///
-  /// Search acroform fields for signature field with specific signature dictionary.
-  ///@param fieldIterator iterator on all fields.
-  ///@param sigObject signature object (the /V part).
-  ///@return a signature field if found, or null if none was found.
-  jni.JniObject findSignatureField(
-          jni.JniObject fieldIterator, jni.JniObject sigObject) =>
-      jni.JniObject.fromRef(_findSignatureField(
-              reference, fieldIterator.reference, sigObject.reference)
-          .object);
-
-  static final _checkSignatureField = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-                  ffi.Pointer<ffi.Void>,
-                  ffi.Pointer<ffi.Void>,
-                  ffi.Pointer<ffi.Void>)>>("PDDocument__checkSignatureField")
-      .asFunction<
-          jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>,
-              ffi.Pointer<ffi.Void>)>();
-
-  /// from: private boolean checkSignatureField(java.util.Iterator<org.apache.pdfbox.pdmodel.interactive.form.PDField> fieldIterator, org.apache.pdfbox.pdmodel.interactive.form.PDSignatureField signatureField)
-  ///
-  /// Check if the field already exists in the field list.
-  ///@param fieldIterator iterator on all fields.
-  ///@param signatureField the signature field.
-  ///@return true if the field already existed in the field list, false if not.
-  bool checkSignatureField(
-          jni.JniObject fieldIterator, jni.JniObject signatureField) =>
-      _checkSignatureField(
-              reference, fieldIterator.reference, signatureField.reference)
-          .boolean;
-
-  static final _checkSignatureAnnotation = jniLookup<
-              ffi.NativeFunction<
-                  jni.JniResult Function(ffi.Pointer<ffi.Void>,
-                      ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>(
-          "PDDocument__checkSignatureAnnotation")
-      .asFunction<
-          jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>,
-              ffi.Pointer<ffi.Void>)>();
-
-  /// from: private boolean checkSignatureAnnotation(java.util.List<org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotation> annotations, org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationWidget widget)
-  ///
-  /// Check if the widget already exists in the annotation list
-  ///@param annotations the list of PDAnnotation fields.
-  ///@param widget the annotation widget.
-  ///@return true if the widget already existed in the annotation list, false if not.
-  bool checkSignatureAnnotation(
-          jni.JniObject annotations, jni.JniObject widget) =>
-      _checkSignatureAnnotation(
-              reference, annotations.reference, widget.reference)
-          .boolean;
-
-  static final _prepareVisibleSignature = jniLookup<
-              ffi.NativeFunction<
-                  jni.JniResult Function(
-                      ffi.Pointer<ffi.Void>,
-                      ffi.Pointer<ffi.Void>,
-                      ffi.Pointer<ffi.Void>,
-                      ffi.Pointer<ffi.Void>)>>(
-          "PDDocument__prepareVisibleSignature")
-      .asFunction<
-          jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>,
-              ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>();
-
-  /// from: private void prepareVisibleSignature(org.apache.pdfbox.pdmodel.interactive.form.PDSignatureField signatureField, org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm acroForm, org.apache.pdfbox.cos.COSDocument visualSignature)
-  void prepareVisibleSignature(jni.JniObject signatureField,
-          jni.JniObject acroForm, jni.JniObject visualSignature) =>
-      _prepareVisibleSignature(reference, signatureField.reference,
-              acroForm.reference, visualSignature.reference)
-          .check();
-
-  static final _assignSignatureRectangle = jniLookup<
-              ffi.NativeFunction<
-                  jni.JniResult Function(ffi.Pointer<ffi.Void>,
-                      ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>(
-          "PDDocument__assignSignatureRectangle")
-      .asFunction<
-          jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>,
-              ffi.Pointer<ffi.Void>)>();
-
-  /// from: private void assignSignatureRectangle(org.apache.pdfbox.pdmodel.interactive.form.PDSignatureField signatureField, org.apache.pdfbox.cos.COSDictionary annotDict)
-  void assignSignatureRectangle(
-          jni.JniObject signatureField, jni.JniObject annotDict) =>
-      _assignSignatureRectangle(
-              reference, signatureField.reference, annotDict.reference)
-          .check();
-
-  static final _assignAppearanceDictionary = jniLookup<
-              ffi.NativeFunction<
-                  jni.JniResult Function(ffi.Pointer<ffi.Void>,
-                      ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>(
-          "PDDocument__assignAppearanceDictionary")
-      .asFunction<
-          jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>,
-              ffi.Pointer<ffi.Void>)>();
-
-  /// from: private void assignAppearanceDictionary(org.apache.pdfbox.pdmodel.interactive.form.PDSignatureField signatureField, org.apache.pdfbox.cos.COSDictionary apDict)
-  void assignAppearanceDictionary(
-          jni.JniObject signatureField, jni.JniObject apDict) =>
-      _assignAppearanceDictionary(
-              reference, signatureField.reference, apDict.reference)
-          .check();
-
-  static final _assignAcroFormDefaultResource = jniLookup<
-              ffi.NativeFunction<
-                  jni.JniResult Function(ffi.Pointer<ffi.Void>,
-                      ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>(
-          "PDDocument__assignAcroFormDefaultResource")
-      .asFunction<
-          jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>,
-              ffi.Pointer<ffi.Void>)>();
-
-  /// from: private void assignAcroFormDefaultResource(org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm acroForm, org.apache.pdfbox.cos.COSDictionary newDict)
-  void assignAcroFormDefaultResource(
-          jni.JniObject acroForm, jni.JniObject newDict) =>
-      _assignAcroFormDefaultResource(
-              reference, acroForm.reference, newDict.reference)
-          .check();
-
-  static final _prepareNonVisibleSignature = jniLookup<
-              ffi.NativeFunction<
-                  jni.JniResult Function(
-                      ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>(
-          "PDDocument__prepareNonVisibleSignature")
-      .asFunction<
-          jni.JniResult Function(
-              ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>();
-
-  /// from: private void prepareNonVisibleSignature(org.apache.pdfbox.pdmodel.interactive.form.PDSignatureField signatureField)
-  void prepareNonVisibleSignature(jni.JniObject signatureField) =>
-      _prepareNonVisibleSignature(reference, signatureField.reference).check();
-
   static final _addSignatureField = jniLookup<
           ffi.NativeFunction<
               jni.JniResult Function(
@@ -996,19 +510,6 @@
   void registerTrueTypeFontForClosing(jni.JniObject ttf) =>
       _registerTrueTypeFontForClosing(reference, ttf.reference).check();
 
-  static final _getFontsToSubset = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-                  ffi.Pointer<ffi.Void>)>>("PDDocument__getFontsToSubset")
-      .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>();
-
-  /// from: java.util.Set<org.apache.pdfbox.pdmodel.font.PDFont> getFontsToSubset()
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  ///
-  /// Returns the list of fonts which will be subset before the document is saved.
-  jni.JniObject getFontsToSubset() =>
-      jni.JniObject.fromRef(_getFontsToSubset(reference).object);
-
   static final _load = jniLookup<
           ffi.NativeFunction<
               jni.JniResult Function(
@@ -1160,35 +661,7 @@
   static final _load6 = jniLookup<
           ffi.NativeFunction<
               jni.JniResult Function(
-                  ffi.Pointer<ffi.Void>,
-                  ffi.Pointer<ffi.Void>,
-                  ffi.Pointer<ffi.Void>,
-                  ffi.Pointer<ffi.Void>,
                   ffi.Pointer<ffi.Void>)>>("PDDocument__load6")
-      .asFunction<
-          jni.JniResult Function(
-              ffi.Pointer<ffi.Void>,
-              ffi.Pointer<ffi.Void>,
-              ffi.Pointer<ffi.Void>,
-              ffi.Pointer<ffi.Void>,
-              ffi.Pointer<ffi.Void>)>();
-
-  /// from: private static org.apache.pdfbox.pdmodel.PDDocument load(org.apache.pdfbox.io.RandomAccessBufferedFileInputStream raFile, java.lang.String password, java.io.InputStream keyStore, java.lang.String alias, org.apache.pdfbox.io.MemoryUsageSetting memUsageSetting)
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  static PDDocument load6(
-          jni.JniObject raFile,
-          jni.JniString password,
-          jni.JniObject keyStore,
-          jni.JniString alias,
-          jni.JniObject memUsageSetting) =>
-      PDDocument.fromRef(_load6(raFile.reference, password.reference,
-              keyStore.reference, alias.reference, memUsageSetting.reference)
-          .object);
-
-  static final _load7 = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-                  ffi.Pointer<ffi.Void>)>>("PDDocument__load7")
       .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>();
 
   /// from: static public org.apache.pdfbox.pdmodel.PDDocument load(java.io.InputStream input)
@@ -1200,13 +673,13 @@
   ///@return loaded document
   ///@throws InvalidPasswordException If the PDF required a non-empty password.
   ///@throws IOException In case of a reading or parsing error.
-  static PDDocument load7(jni.JniObject input) =>
-      PDDocument.fromRef(_load7(input.reference).object);
+  static PDDocument load6(jni.JniObject input) =>
+      PDDocument.fromRef(_load6(input.reference).object);
 
-  static final _load8 = jniLookup<
+  static final _load7 = jniLookup<
           ffi.NativeFunction<
               jni.JniResult Function(ffi.Pointer<ffi.Void>,
-                  ffi.Pointer<ffi.Void>)>>("PDDocument__load8")
+                  ffi.Pointer<ffi.Void>)>>("PDDocument__load7")
       .asFunction<
           jni.JniResult Function(
               ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>();
@@ -1221,14 +694,14 @@
   ///@return loaded document
   ///@throws InvalidPasswordException If the PDF required a non-empty password.
   ///@throws IOException In case of a reading or parsing error.
-  static PDDocument load8(jni.JniObject input, jni.JniObject memUsageSetting) =>
+  static PDDocument load7(jni.JniObject input, jni.JniObject memUsageSetting) =>
       PDDocument.fromRef(
-          _load8(input.reference, memUsageSetting.reference).object);
+          _load7(input.reference, memUsageSetting.reference).object);
 
-  static final _load9 = jniLookup<
+  static final _load8 = jniLookup<
           ffi.NativeFunction<
               jni.JniResult Function(ffi.Pointer<ffi.Void>,
-                  ffi.Pointer<ffi.Void>)>>("PDDocument__load9")
+                  ffi.Pointer<ffi.Void>)>>("PDDocument__load8")
       .asFunction<
           jni.JniResult Function(
               ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>();
@@ -1243,16 +716,16 @@
   ///@return loaded document
   ///@throws InvalidPasswordException If the password is incorrect.
   ///@throws IOException In case of a reading or parsing error.
-  static PDDocument load9(jni.JniObject input, jni.JniString password) =>
-      PDDocument.fromRef(_load9(input.reference, password.reference).object);
+  static PDDocument load8(jni.JniObject input, jni.JniString password) =>
+      PDDocument.fromRef(_load8(input.reference, password.reference).object);
 
-  static final _load10 = jniLookup<
+  static final _load9 = jniLookup<
           ffi.NativeFunction<
               jni.JniResult Function(
                   ffi.Pointer<ffi.Void>,
                   ffi.Pointer<ffi.Void>,
                   ffi.Pointer<ffi.Void>,
-                  ffi.Pointer<ffi.Void>)>>("PDDocument__load10")
+                  ffi.Pointer<ffi.Void>)>>("PDDocument__load9")
       .asFunction<
           jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>,
               ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>();
@@ -1268,18 +741,18 @@
   ///@param alias alias to be used for decryption when using public key security
   ///@return loaded document
   ///@throws IOException In case of a reading or parsing error.
-  static PDDocument load10(jni.JniObject input, jni.JniString password,
+  static PDDocument load9(jni.JniObject input, jni.JniString password,
           jni.JniObject keyStore, jni.JniString alias) =>
-      PDDocument.fromRef(_load10(input.reference, password.reference,
+      PDDocument.fromRef(_load9(input.reference, password.reference,
               keyStore.reference, alias.reference)
           .object);
 
-  static final _load11 = jniLookup<
+  static final _load10 = jniLookup<
           ffi.NativeFunction<
               jni.JniResult Function(
                   ffi.Pointer<ffi.Void>,
                   ffi.Pointer<ffi.Void>,
-                  ffi.Pointer<ffi.Void>)>>("PDDocument__load11")
+                  ffi.Pointer<ffi.Void>)>>("PDDocument__load10")
       .asFunction<
           jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>,
               ffi.Pointer<ffi.Void>)>();
@@ -1295,20 +768,20 @@
   ///@return loaded document
   ///@throws InvalidPasswordException If the password is incorrect.
   ///@throws IOException In case of a reading or parsing error.
-  static PDDocument load11(jni.JniObject input, jni.JniString password,
+  static PDDocument load10(jni.JniObject input, jni.JniString password,
           jni.JniObject memUsageSetting) =>
-      PDDocument.fromRef(_load11(
+      PDDocument.fromRef(_load10(
               input.reference, password.reference, memUsageSetting.reference)
           .object);
 
-  static final _load12 = jniLookup<
+  static final _load11 = jniLookup<
           ffi.NativeFunction<
               jni.JniResult Function(
                   ffi.Pointer<ffi.Void>,
                   ffi.Pointer<ffi.Void>,
                   ffi.Pointer<ffi.Void>,
                   ffi.Pointer<ffi.Void>,
-                  ffi.Pointer<ffi.Void>)>>("PDDocument__load12")
+                  ffi.Pointer<ffi.Void>)>>("PDDocument__load11")
       .asFunction<
           jni.JniResult Function(
               ffi.Pointer<ffi.Void>,
@@ -1330,20 +803,20 @@
   ///@return loaded document
   ///@throws InvalidPasswordException If the password is incorrect.
   ///@throws IOException In case of a reading or parsing error.
-  static PDDocument load12(
+  static PDDocument load11(
           jni.JniObject input,
           jni.JniString password,
           jni.JniObject keyStore,
           jni.JniString alias,
           jni.JniObject memUsageSetting) =>
-      PDDocument.fromRef(_load12(input.reference, password.reference,
+      PDDocument.fromRef(_load11(input.reference, password.reference,
               keyStore.reference, alias.reference, memUsageSetting.reference)
           .object);
 
-  static final _load13 = jniLookup<
+  static final _load12 = jniLookup<
           ffi.NativeFunction<
               jni.JniResult Function(
-                  ffi.Pointer<ffi.Void>)>>("PDDocument__load13")
+                  ffi.Pointer<ffi.Void>)>>("PDDocument__load12")
       .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>();
 
   /// from: static public org.apache.pdfbox.pdmodel.PDDocument load(byte[] input)
@@ -1354,13 +827,13 @@
   ///@return loaded document
   ///@throws InvalidPasswordException If the PDF required a non-empty password.
   ///@throws IOException In case of a reading or parsing error.
-  static PDDocument load13(jni.JniObject input) =>
-      PDDocument.fromRef(_load13(input.reference).object);
+  static PDDocument load12(jni.JniObject input) =>
+      PDDocument.fromRef(_load12(input.reference).object);
 
-  static final _load14 = jniLookup<
+  static final _load13 = jniLookup<
           ffi.NativeFunction<
               jni.JniResult Function(ffi.Pointer<ffi.Void>,
-                  ffi.Pointer<ffi.Void>)>>("PDDocument__load14")
+                  ffi.Pointer<ffi.Void>)>>("PDDocument__load13")
       .asFunction<
           jni.JniResult Function(
               ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>();
@@ -1374,16 +847,16 @@
   ///@return loaded document
   ///@throws InvalidPasswordException If the password is incorrect.
   ///@throws IOException In case of a reading or parsing error.
-  static PDDocument load14(jni.JniObject input, jni.JniString password) =>
-      PDDocument.fromRef(_load14(input.reference, password.reference).object);
+  static PDDocument load13(jni.JniObject input, jni.JniString password) =>
+      PDDocument.fromRef(_load13(input.reference, password.reference).object);
 
-  static final _load15 = jniLookup<
+  static final _load14 = jniLookup<
           ffi.NativeFunction<
               jni.JniResult Function(
                   ffi.Pointer<ffi.Void>,
                   ffi.Pointer<ffi.Void>,
                   ffi.Pointer<ffi.Void>,
-                  ffi.Pointer<ffi.Void>)>>("PDDocument__load15")
+                  ffi.Pointer<ffi.Void>)>>("PDDocument__load14")
       .asFunction<
           jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>,
               ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>();
@@ -1399,20 +872,20 @@
   ///@return loaded document
   ///@throws InvalidPasswordException If the password is incorrect.
   ///@throws IOException In case of a reading or parsing error.
-  static PDDocument load15(jni.JniObject input, jni.JniString password,
+  static PDDocument load14(jni.JniObject input, jni.JniString password,
           jni.JniObject keyStore, jni.JniString alias) =>
-      PDDocument.fromRef(_load15(input.reference, password.reference,
+      PDDocument.fromRef(_load14(input.reference, password.reference,
               keyStore.reference, alias.reference)
           .object);
 
-  static final _load16 = jniLookup<
+  static final _load15 = jniLookup<
           ffi.NativeFunction<
               jni.JniResult Function(
                   ffi.Pointer<ffi.Void>,
                   ffi.Pointer<ffi.Void>,
                   ffi.Pointer<ffi.Void>,
                   ffi.Pointer<ffi.Void>,
-                  ffi.Pointer<ffi.Void>)>>("PDDocument__load16")
+                  ffi.Pointer<ffi.Void>)>>("PDDocument__load15")
       .asFunction<
           jni.JniResult Function(
               ffi.Pointer<ffi.Void>,
@@ -1433,13 +906,13 @@
   ///@return loaded document
   ///@throws InvalidPasswordException If the password is incorrect.
   ///@throws IOException In case of a reading or parsing error.
-  static PDDocument load16(
+  static PDDocument load15(
           jni.JniObject input,
           jni.JniString password,
           jni.JniObject keyStore,
           jni.JniString alias,
           jni.JniObject memUsageSetting) =>
-      PDDocument.fromRef(_load16(input.reference, password.reference,
+      PDDocument.fromRef(_load15(input.reference, password.reference,
               keyStore.reference, alias.reference, memUsageSetting.reference)
           .object);
 
diff --git a/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/pdmodel/PDDocumentInformation.dart b/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/pdmodel/PDDocumentInformation.dart
index ec36c58..d525c69 100644
--- a/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/pdmodel/PDDocumentInformation.dart
+++ b/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/pdmodel/PDDocumentInformation.dart
@@ -43,20 +43,6 @@
 class PDDocumentInformation extends jni.JniObject {
   PDDocumentInformation.fromRef(ffi.Pointer<ffi.Void> ref) : super.fromRef(ref);
 
-  static final _get_info = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDDocumentInformation__info")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private final org.apache.pdfbox.cos.COSDictionary info
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  jni.JniObject get info => jni.JniObject.fromRef(_get_info(reference).object);
-
   static final _ctor = jniLookup<ffi.NativeFunction<jni.JniResult Function()>>(
           "PDDocumentInformation__ctor")
       .asFunction<jni.JniResult Function()>();
diff --git a/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/text/PDFTextStripper.dart b/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/text/PDFTextStripper.dart
index 36c621e..acc83fc 100644
--- a/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/text/PDFTextStripper.dart
+++ b/pkgs/jnigen/example/pdfbox_plugin/lib/src/third_party/org/apache/pdfbox/text/PDFTextStripper.dart
@@ -46,48 +46,6 @@
 class PDFTextStripper extends jni.JniObject {
   PDFTextStripper.fromRef(ffi.Pointer<ffi.Void> ref) : super.fromRef(ref);
 
-  static final _get_defaultIndentThreshold =
-      jniLookup<ffi.NativeFunction<jni.JniResult Function()>>(
-              "get_PDFTextStripper__defaultIndentThreshold")
-          .asFunction<jni.JniResult Function()>();
-
-  /// from: private static float defaultIndentThreshold
-  static double get defaultIndentThreshold =>
-      _get_defaultIndentThreshold().float;
-  static final _set_defaultIndentThreshold =
-      jniLookup<ffi.NativeFunction<jni.JThrowable Function(ffi.Float)>>(
-              "set_PDFTextStripper__defaultIndentThreshold")
-          .asFunction<jni.JThrowable Function(double)>();
-
-  /// from: private static float defaultIndentThreshold
-  static set defaultIndentThreshold(double value) =>
-      _set_defaultIndentThreshold(value);
-
-  static final _get_defaultDropThreshold =
-      jniLookup<ffi.NativeFunction<jni.JniResult Function()>>(
-              "get_PDFTextStripper__defaultDropThreshold")
-          .asFunction<jni.JniResult Function()>();
-
-  /// from: private static float defaultDropThreshold
-  static double get defaultDropThreshold => _get_defaultDropThreshold().float;
-  static final _set_defaultDropThreshold =
-      jniLookup<ffi.NativeFunction<jni.JThrowable Function(ffi.Float)>>(
-              "set_PDFTextStripper__defaultDropThreshold")
-          .asFunction<jni.JThrowable Function(double)>();
-
-  /// from: private static float defaultDropThreshold
-  static set defaultDropThreshold(double value) =>
-      _set_defaultDropThreshold(value);
-
-  static final _get_LOG =
-      jniLookup<ffi.NativeFunction<jni.JniResult Function()>>(
-              "get_PDFTextStripper__LOG")
-          .asFunction<jni.JniResult Function()>();
-
-  /// from: private static final org.apache.commons.logging.Log LOG
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  static jni.JniObject get LOG => jni.JniObject.fromRef(_get_LOG().object);
-
   static final _get_LINE_SEPARATOR = jniLookup<
           ffi.NativeFunction<
               jni.JniResult Function(
@@ -105,575 +63,6 @@
   jni.JniString get LINE_SEPARATOR =>
       jni.JniString.fromRef(_get_LINE_SEPARATOR(reference).object);
 
-  static final _get_lineSeparator = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDFTextStripper__lineSeparator")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private java.lang.String lineSeparator
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  jni.JniString get lineSeparator =>
-      jni.JniString.fromRef(_get_lineSeparator(reference).object);
-  static final _set_lineSeparator = jniLookup<
-          ffi.NativeFunction<
-              jni.JThrowable Function(jni.JObject,
-                  ffi.Pointer<ffi.Void>)>>("set_PDFTextStripper__lineSeparator")
-      .asFunction<
-          jni.JThrowable Function(jni.JObject, ffi.Pointer<ffi.Void>)>();
-
-  /// from: private java.lang.String lineSeparator
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  set lineSeparator(jni.JniString value) =>
-      _set_lineSeparator(reference, value.reference);
-
-  static final _get_wordSeparator = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDFTextStripper__wordSeparator")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private java.lang.String wordSeparator
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  jni.JniString get wordSeparator =>
-      jni.JniString.fromRef(_get_wordSeparator(reference).object);
-  static final _set_wordSeparator = jniLookup<
-          ffi.NativeFunction<
-              jni.JThrowable Function(jni.JObject,
-                  ffi.Pointer<ffi.Void>)>>("set_PDFTextStripper__wordSeparator")
-      .asFunction<
-          jni.JThrowable Function(jni.JObject, ffi.Pointer<ffi.Void>)>();
-
-  /// from: private java.lang.String wordSeparator
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  set wordSeparator(jni.JniString value) =>
-      _set_wordSeparator(reference, value.reference);
-
-  static final _get_paragraphStart = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDFTextStripper__paragraphStart")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private java.lang.String paragraphStart
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  jni.JniString get paragraphStart =>
-      jni.JniString.fromRef(_get_paragraphStart(reference).object);
-  static final _set_paragraphStart = jniLookup<
-              ffi.NativeFunction<
-                  jni.JThrowable Function(jni.JObject, ffi.Pointer<ffi.Void>)>>(
-          "set_PDFTextStripper__paragraphStart")
-      .asFunction<
-          jni.JThrowable Function(jni.JObject, ffi.Pointer<ffi.Void>)>();
-
-  /// from: private java.lang.String paragraphStart
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  set paragraphStart(jni.JniString value) =>
-      _set_paragraphStart(reference, value.reference);
-
-  static final _get_paragraphEnd = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDFTextStripper__paragraphEnd")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private java.lang.String paragraphEnd
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  jni.JniString get paragraphEnd =>
-      jni.JniString.fromRef(_get_paragraphEnd(reference).object);
-  static final _set_paragraphEnd = jniLookup<
-          ffi.NativeFunction<
-              jni.JThrowable Function(jni.JObject,
-                  ffi.Pointer<ffi.Void>)>>("set_PDFTextStripper__paragraphEnd")
-      .asFunction<
-          jni.JThrowable Function(jni.JObject, ffi.Pointer<ffi.Void>)>();
-
-  /// from: private java.lang.String paragraphEnd
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  set paragraphEnd(jni.JniString value) =>
-      _set_paragraphEnd(reference, value.reference);
-
-  static final _get_pageStart = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDFTextStripper__pageStart")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private java.lang.String pageStart
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  jni.JniString get pageStart =>
-      jni.JniString.fromRef(_get_pageStart(reference).object);
-  static final _set_pageStart = jniLookup<
-          ffi.NativeFunction<
-              jni.JThrowable Function(jni.JObject,
-                  ffi.Pointer<ffi.Void>)>>("set_PDFTextStripper__pageStart")
-      .asFunction<
-          jni.JThrowable Function(jni.JObject, ffi.Pointer<ffi.Void>)>();
-
-  /// from: private java.lang.String pageStart
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  set pageStart(jni.JniString value) =>
-      _set_pageStart(reference, value.reference);
-
-  static final _get_pageEnd = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDFTextStripper__pageEnd")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private java.lang.String pageEnd
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  jni.JniString get pageEnd =>
-      jni.JniString.fromRef(_get_pageEnd(reference).object);
-  static final _set_pageEnd = jniLookup<
-          ffi.NativeFunction<
-              jni.JThrowable Function(jni.JObject,
-                  ffi.Pointer<ffi.Void>)>>("set_PDFTextStripper__pageEnd")
-      .asFunction<
-          jni.JThrowable Function(jni.JObject, ffi.Pointer<ffi.Void>)>();
-
-  /// from: private java.lang.String pageEnd
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  set pageEnd(jni.JniString value) => _set_pageEnd(reference, value.reference);
-
-  static final _get_articleStart = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDFTextStripper__articleStart")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private java.lang.String articleStart
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  jni.JniString get articleStart =>
-      jni.JniString.fromRef(_get_articleStart(reference).object);
-  static final _set_articleStart = jniLookup<
-          ffi.NativeFunction<
-              jni.JThrowable Function(jni.JObject,
-                  ffi.Pointer<ffi.Void>)>>("set_PDFTextStripper__articleStart")
-      .asFunction<
-          jni.JThrowable Function(jni.JObject, ffi.Pointer<ffi.Void>)>();
-
-  /// from: private java.lang.String articleStart
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  set articleStart(jni.JniString value) =>
-      _set_articleStart(reference, value.reference);
-
-  static final _get_articleEnd = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDFTextStripper__articleEnd")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private java.lang.String articleEnd
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  jni.JniString get articleEnd =>
-      jni.JniString.fromRef(_get_articleEnd(reference).object);
-  static final _set_articleEnd = jniLookup<
-          ffi.NativeFunction<
-              jni.JThrowable Function(jni.JObject,
-                  ffi.Pointer<ffi.Void>)>>("set_PDFTextStripper__articleEnd")
-      .asFunction<
-          jni.JThrowable Function(jni.JObject, ffi.Pointer<ffi.Void>)>();
-
-  /// from: private java.lang.String articleEnd
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  set articleEnd(jni.JniString value) =>
-      _set_articleEnd(reference, value.reference);
-
-  static final _get_currentPageNo = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDFTextStripper__currentPageNo")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private int currentPageNo
-  int get currentPageNo => _get_currentPageNo(reference).integer;
-  static final _set_currentPageNo = jniLookup<
-          ffi.NativeFunction<
-              jni.JThrowable Function(jni.JObject,
-                  ffi.Int32)>>("set_PDFTextStripper__currentPageNo")
-      .asFunction<jni.JThrowable Function(jni.JObject, int)>();
-
-  /// from: private int currentPageNo
-  set currentPageNo(int value) => _set_currentPageNo(reference, value);
-
-  static final _get_startPage = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDFTextStripper__startPage")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private int startPage
-  int get startPage => _get_startPage(reference).integer;
-  static final _set_startPage = jniLookup<
-          ffi.NativeFunction<
-              jni.JThrowable Function(
-                  jni.JObject, ffi.Int32)>>("set_PDFTextStripper__startPage")
-      .asFunction<jni.JThrowable Function(jni.JObject, int)>();
-
-  /// from: private int startPage
-  set startPage(int value) => _set_startPage(reference, value);
-
-  static final _get_endPage = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDFTextStripper__endPage")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private int endPage
-  int get endPage => _get_endPage(reference).integer;
-  static final _set_endPage = jniLookup<
-          ffi.NativeFunction<
-              jni.JThrowable Function(
-                  jni.JObject, ffi.Int32)>>("set_PDFTextStripper__endPage")
-      .asFunction<jni.JThrowable Function(jni.JObject, int)>();
-
-  /// from: private int endPage
-  set endPage(int value) => _set_endPage(reference, value);
-
-  static final _get_startBookmark = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDFTextStripper__startBookmark")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineItem startBookmark
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  jni.JniObject get startBookmark =>
-      jni.JniObject.fromRef(_get_startBookmark(reference).object);
-  static final _set_startBookmark = jniLookup<
-          ffi.NativeFunction<
-              jni.JThrowable Function(jni.JObject,
-                  ffi.Pointer<ffi.Void>)>>("set_PDFTextStripper__startBookmark")
-      .asFunction<
-          jni.JThrowable Function(jni.JObject, ffi.Pointer<ffi.Void>)>();
-
-  /// from: private org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineItem startBookmark
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  set startBookmark(jni.JniObject value) =>
-      _set_startBookmark(reference, value.reference);
-
-  static final _get_startBookmarkPageNumber = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDFTextStripper__startBookmarkPageNumber")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private int startBookmarkPageNumber
-  int get startBookmarkPageNumber =>
-      _get_startBookmarkPageNumber(reference).integer;
-  static final _set_startBookmarkPageNumber = jniLookup<
-          ffi.NativeFunction<
-              jni.JThrowable Function(jni.JObject,
-                  ffi.Int32)>>("set_PDFTextStripper__startBookmarkPageNumber")
-      .asFunction<jni.JThrowable Function(jni.JObject, int)>();
-
-  /// from: private int startBookmarkPageNumber
-  set startBookmarkPageNumber(int value) =>
-      _set_startBookmarkPageNumber(reference, value);
-
-  static final _get_endBookmarkPageNumber = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDFTextStripper__endBookmarkPageNumber")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private int endBookmarkPageNumber
-  int get endBookmarkPageNumber =>
-      _get_endBookmarkPageNumber(reference).integer;
-  static final _set_endBookmarkPageNumber = jniLookup<
-          ffi.NativeFunction<
-              jni.JThrowable Function(jni.JObject,
-                  ffi.Int32)>>("set_PDFTextStripper__endBookmarkPageNumber")
-      .asFunction<jni.JThrowable Function(jni.JObject, int)>();
-
-  /// from: private int endBookmarkPageNumber
-  set endBookmarkPageNumber(int value) =>
-      _set_endBookmarkPageNumber(reference, value);
-
-  static final _get_endBookmark = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDFTextStripper__endBookmark")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineItem endBookmark
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  jni.JniObject get endBookmark =>
-      jni.JniObject.fromRef(_get_endBookmark(reference).object);
-  static final _set_endBookmark = jniLookup<
-          ffi.NativeFunction<
-              jni.JThrowable Function(jni.JObject,
-                  ffi.Pointer<ffi.Void>)>>("set_PDFTextStripper__endBookmark")
-      .asFunction<
-          jni.JThrowable Function(jni.JObject, ffi.Pointer<ffi.Void>)>();
-
-  /// from: private org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineItem endBookmark
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  set endBookmark(jni.JniObject value) =>
-      _set_endBookmark(reference, value.reference);
-
-  static final _get_suppressDuplicateOverlappingText = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDFTextStripper__suppressDuplicateOverlappingText")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private boolean suppressDuplicateOverlappingText
-  bool get suppressDuplicateOverlappingText =>
-      _get_suppressDuplicateOverlappingText(reference).boolean;
-  static final _set_suppressDuplicateOverlappingText = jniLookup<
-              ffi.NativeFunction<
-                  jni.JThrowable Function(jni.JObject, ffi.Uint8)>>(
-          "set_PDFTextStripper__suppressDuplicateOverlappingText")
-      .asFunction<jni.JThrowable Function(jni.JObject, int)>();
-
-  /// from: private boolean suppressDuplicateOverlappingText
-  set suppressDuplicateOverlappingText(bool value) =>
-      _set_suppressDuplicateOverlappingText(reference, value ? 1 : 0);
-
-  static final _get_shouldSeparateByBeads = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDFTextStripper__shouldSeparateByBeads")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private boolean shouldSeparateByBeads
-  bool get shouldSeparateByBeads =>
-      _get_shouldSeparateByBeads(reference).boolean;
-  static final _set_shouldSeparateByBeads = jniLookup<
-          ffi.NativeFunction<
-              jni.JThrowable Function(jni.JObject,
-                  ffi.Uint8)>>("set_PDFTextStripper__shouldSeparateByBeads")
-      .asFunction<jni.JThrowable Function(jni.JObject, int)>();
-
-  /// from: private boolean shouldSeparateByBeads
-  set shouldSeparateByBeads(bool value) =>
-      _set_shouldSeparateByBeads(reference, value ? 1 : 0);
-
-  static final _get_sortByPosition = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDFTextStripper__sortByPosition")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private boolean sortByPosition
-  bool get sortByPosition => _get_sortByPosition(reference).boolean;
-  static final _set_sortByPosition = jniLookup<
-          ffi.NativeFunction<
-              jni.JThrowable Function(jni.JObject,
-                  ffi.Uint8)>>("set_PDFTextStripper__sortByPosition")
-      .asFunction<jni.JThrowable Function(jni.JObject, int)>();
-
-  /// from: private boolean sortByPosition
-  set sortByPosition(bool value) =>
-      _set_sortByPosition(reference, value ? 1 : 0);
-
-  static final _get_addMoreFormatting = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDFTextStripper__addMoreFormatting")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private boolean addMoreFormatting
-  bool get addMoreFormatting => _get_addMoreFormatting(reference).boolean;
-  static final _set_addMoreFormatting = jniLookup<
-          ffi.NativeFunction<
-              jni.JThrowable Function(jni.JObject,
-                  ffi.Uint8)>>("set_PDFTextStripper__addMoreFormatting")
-      .asFunction<jni.JThrowable Function(jni.JObject, int)>();
-
-  /// from: private boolean addMoreFormatting
-  set addMoreFormatting(bool value) =>
-      _set_addMoreFormatting(reference, value ? 1 : 0);
-
-  static final _get_indentThreshold = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDFTextStripper__indentThreshold")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private float indentThreshold
-  double get indentThreshold => _get_indentThreshold(reference).float;
-  static final _set_indentThreshold = jniLookup<
-          ffi.NativeFunction<
-              jni.JThrowable Function(jni.JObject,
-                  ffi.Float)>>("set_PDFTextStripper__indentThreshold")
-      .asFunction<jni.JThrowable Function(jni.JObject, double)>();
-
-  /// from: private float indentThreshold
-  set indentThreshold(double value) => _set_indentThreshold(reference, value);
-
-  static final _get_dropThreshold = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDFTextStripper__dropThreshold")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private float dropThreshold
-  double get dropThreshold => _get_dropThreshold(reference).float;
-  static final _set_dropThreshold = jniLookup<
-          ffi.NativeFunction<
-              jni.JThrowable Function(jni.JObject,
-                  ffi.Float)>>("set_PDFTextStripper__dropThreshold")
-      .asFunction<jni.JThrowable Function(jni.JObject, double)>();
-
-  /// from: private float dropThreshold
-  set dropThreshold(double value) => _set_dropThreshold(reference, value);
-
-  static final _get_spacingTolerance = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDFTextStripper__spacingTolerance")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private float spacingTolerance
-  double get spacingTolerance => _get_spacingTolerance(reference).float;
-  static final _set_spacingTolerance = jniLookup<
-          ffi.NativeFunction<
-              jni.JThrowable Function(jni.JObject,
-                  ffi.Float)>>("set_PDFTextStripper__spacingTolerance")
-      .asFunction<jni.JThrowable Function(jni.JObject, double)>();
-
-  /// from: private float spacingTolerance
-  set spacingTolerance(double value) => _set_spacingTolerance(reference, value);
-
-  static final _get_averageCharTolerance = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDFTextStripper__averageCharTolerance")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private float averageCharTolerance
-  double get averageCharTolerance => _get_averageCharTolerance(reference).float;
-  static final _set_averageCharTolerance = jniLookup<
-          ffi.NativeFunction<
-              jni.JThrowable Function(jni.JObject,
-                  ffi.Float)>>("set_PDFTextStripper__averageCharTolerance")
-      .asFunction<jni.JThrowable Function(jni.JObject, double)>();
-
-  /// from: private float averageCharTolerance
-  set averageCharTolerance(double value) =>
-      _set_averageCharTolerance(reference, value);
-
-  static final _get_beadRectangles = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDFTextStripper__beadRectangles")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private java.util.List<org.apache.pdfbox.pdmodel.common.PDRectangle> beadRectangles
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  jni.JniObject get beadRectangles =>
-      jni.JniObject.fromRef(_get_beadRectangles(reference).object);
-  static final _set_beadRectangles = jniLookup<
-              ffi.NativeFunction<
-                  jni.JThrowable Function(jni.JObject, ffi.Pointer<ffi.Void>)>>(
-          "set_PDFTextStripper__beadRectangles")
-      .asFunction<
-          jni.JThrowable Function(jni.JObject, ffi.Pointer<ffi.Void>)>();
-
-  /// from: private java.util.List<org.apache.pdfbox.pdmodel.common.PDRectangle> beadRectangles
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  set beadRectangles(jni.JniObject value) =>
-      _set_beadRectangles(reference, value.reference);
-
   static final _get_charactersByArticle = jniLookup<
           ffi.NativeFunction<
               jni.JniResult Function(
@@ -726,32 +115,6 @@
   set charactersByArticle(jni.JniObject value) =>
       _set_charactersByArticle(reference, value.reference);
 
-  static final _get_characterListMapping = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDFTextStripper__characterListMapping")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private java.util.Map<java.lang.String,java.util.TreeMap<java.lang.Float,java.util.TreeSet<java.lang.Float>>> characterListMapping
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  jni.JniObject get characterListMapping =>
-      jni.JniObject.fromRef(_get_characterListMapping(reference).object);
-  static final _set_characterListMapping = jniLookup<
-              ffi.NativeFunction<
-                  jni.JThrowable Function(jni.JObject, ffi.Pointer<ffi.Void>)>>(
-          "set_PDFTextStripper__characterListMapping")
-      .asFunction<
-          jni.JThrowable Function(jni.JObject, ffi.Pointer<ffi.Void>)>();
-
-  /// from: private java.util.Map<java.lang.String,java.util.TreeMap<java.lang.Float,java.util.TreeSet<java.lang.Float>>> characterListMapping
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  set characterListMapping(jni.JniObject value) =>
-      _set_characterListMapping(reference, value.reference);
-
   static final _get_document = jniLookup<
           ffi.NativeFunction<
               jni.JniResult Function(
@@ -803,108 +166,6 @@
   /// The returned object must be deleted after use, by calling the `delete` method.
   set output(jni.JniObject value) => _set_output(reference, value.reference);
 
-  static final _get_inParagraph = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDFTextStripper__inParagraph")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private boolean inParagraph
-  ///
-  /// True if we started a paragraph but haven't ended it yet.
-  bool get inParagraph => _get_inParagraph(reference).boolean;
-  static final _set_inParagraph = jniLookup<
-          ffi.NativeFunction<
-              jni.JThrowable Function(
-                  jni.JObject, ffi.Uint8)>>("set_PDFTextStripper__inParagraph")
-      .asFunction<jni.JThrowable Function(jni.JObject, int)>();
-
-  /// from: private boolean inParagraph
-  ///
-  /// True if we started a paragraph but haven't ended it yet.
-  set inParagraph(bool value) => _set_inParagraph(reference, value ? 1 : 0);
-
-  /// from: private static final float END_OF_LAST_TEXT_X_RESET_VALUE
-  static const END_OF_LAST_TEXT_X_RESET_VALUE = -1.0;
-
-  /// from: private static final float MAX_Y_FOR_LINE_RESET_VALUE
-  static const MAX_Y_FOR_LINE_RESET_VALUE = -3.4028235e+38;
-
-  /// from: private static final float EXPECTED_START_OF_NEXT_WORD_X_RESET_VALUE
-  static const EXPECTED_START_OF_NEXT_WORD_X_RESET_VALUE = -3.4028235e+38;
-
-  /// from: private static final float MAX_HEIGHT_FOR_LINE_RESET_VALUE
-  static const MAX_HEIGHT_FOR_LINE_RESET_VALUE = -1.0;
-
-  /// from: private static final float MIN_Y_TOP_FOR_LINE_RESET_VALUE
-  static const MIN_Y_TOP_FOR_LINE_RESET_VALUE = 3.4028235e+38;
-
-  /// from: private static final float LAST_WORD_SPACING_RESET_VALUE
-  static const LAST_WORD_SPACING_RESET_VALUE = -1.0;
-
-  static final _get_LIST_ITEM_EXPRESSIONS =
-      jniLookup<ffi.NativeFunction<jni.JniResult Function()>>(
-              "get_PDFTextStripper__LIST_ITEM_EXPRESSIONS")
-          .asFunction<jni.JniResult Function()>();
-
-  /// from: private static final java.lang.String[] LIST_ITEM_EXPRESSIONS
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  ///
-  /// a list of regular expressions that match commonly used list item formats, i.e. bullets, numbers, letters, Roman
-  /// numerals, etc. Not meant to be comprehensive.
-  static jni.JniObject get LIST_ITEM_EXPRESSIONS =>
-      jni.JniObject.fromRef(_get_LIST_ITEM_EXPRESSIONS().object);
-
-  static final _get_listOfPatterns = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-    jni.JObject,
-  )>>("get_PDFTextStripper__listOfPatterns")
-      .asFunction<
-          jni.JniResult Function(
-    jni.JObject,
-  )>();
-
-  /// from: private java.util.List<java.util.regex.Pattern> listOfPatterns
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  jni.JniObject get listOfPatterns =>
-      jni.JniObject.fromRef(_get_listOfPatterns(reference).object);
-  static final _set_listOfPatterns = jniLookup<
-              ffi.NativeFunction<
-                  jni.JThrowable Function(jni.JObject, ffi.Pointer<ffi.Void>)>>(
-          "set_PDFTextStripper__listOfPatterns")
-      .asFunction<
-          jni.JThrowable Function(jni.JObject, ffi.Pointer<ffi.Void>)>();
-
-  /// from: private java.util.List<java.util.regex.Pattern> listOfPatterns
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  set listOfPatterns(jni.JniObject value) =>
-      _set_listOfPatterns(reference, value.reference);
-
-  static final _get_MIRRORING_CHAR_MAP =
-      jniLookup<ffi.NativeFunction<jni.JniResult Function()>>(
-              "get_PDFTextStripper__MIRRORING_CHAR_MAP")
-          .asFunction<jni.JniResult Function()>();
-
-  /// from: private static java.util.Map<java.lang.Character,java.lang.Character> MIRRORING_CHAR_MAP
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  static jni.JniObject get MIRRORING_CHAR_MAP =>
-      jni.JniObject.fromRef(_get_MIRRORING_CHAR_MAP().object);
-  static final _set_MIRRORING_CHAR_MAP = jniLookup<
-              ffi.NativeFunction<
-                  jni.JThrowable Function(ffi.Pointer<ffi.Void>)>>(
-          "set_PDFTextStripper__MIRRORING_CHAR_MAP")
-      .asFunction<jni.JThrowable Function(ffi.Pointer<ffi.Void>)>();
-
-  /// from: private static java.util.Map<java.lang.Character,java.lang.Character> MIRRORING_CHAR_MAP
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  static set MIRRORING_CHAR_MAP(jni.JniObject value) =>
-      _set_MIRRORING_CHAR_MAP(value.reference);
-
   static final _ctor = jniLookup<ffi.NativeFunction<jni.JniResult Function()>>(
           "PDFTextStripper__ctor")
       .asFunction<jni.JniResult Function()>();
@@ -939,15 +200,6 @@
   jni.JniString getText(pddocument_.PDDocument doc) =>
       jni.JniString.fromRef(_getText(reference, doc.reference).object);
 
-  static final _resetEngine = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-                  ffi.Pointer<ffi.Void>)>>("PDFTextStripper__resetEngine")
-      .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>();
-
-  /// from: private void resetEngine()
-  void resetEngine() => _resetEngine(reference).check();
-
   static final _writeText = jniLookup<
           ffi.NativeFunction<
               jni.JniResult Function(
@@ -1032,19 +284,6 @@
   void processPage(jni.JniObject page) =>
       _processPage(reference, page.reference).check();
 
-  static final _fillBeadRectangles = jniLookup<
-              ffi.NativeFunction<
-                  jni.JniResult Function(
-                      ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>(
-          "PDFTextStripper__fillBeadRectangles")
-      .asFunction<
-          jni.JniResult Function(
-              ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>();
-
-  /// from: private void fillBeadRectangles(org.apache.pdfbox.pdmodel.PDPage page)
-  void fillBeadRectangles(jni.JniObject page) =>
-      _fillBeadRectangles(reference, page.reference).check();
-
   static final _startArticle = jniLookup<
           ffi.NativeFunction<
               jni.JniResult Function(
@@ -1086,10 +325,10 @@
   ///@throws IOException If there is any error writing to the stream.
   void endArticle() => _endArticle(reference).check();
 
-  static final _startPage1 = jniLookup<
+  static final _startPage = jniLookup<
           ffi.NativeFunction<
               jni.JniResult Function(ffi.Pointer<ffi.Void>,
-                  ffi.Pointer<ffi.Void>)>>("PDFTextStripper__startPage1")
+                  ffi.Pointer<ffi.Void>)>>("PDFTextStripper__startPage")
       .asFunction<
           jni.JniResult Function(
               ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>();
@@ -1099,13 +338,13 @@
   /// Start a new page. Default implementation is to do nothing. Subclasses may provide additional information.
   ///@param page The page we are about to process.
   ///@throws IOException If there is any error writing to the stream.
-  void startPage1(jni.JniObject page) =>
-      _startPage1(reference, page.reference).check();
+  void startPage(jni.JniObject page) =>
+      _startPage(reference, page.reference).check();
 
-  static final _endPage1 = jniLookup<
+  static final _endPage = jniLookup<
           ffi.NativeFunction<
               jni.JniResult Function(ffi.Pointer<ffi.Void>,
-                  ffi.Pointer<ffi.Void>)>>("PDFTextStripper__endPage1")
+                  ffi.Pointer<ffi.Void>)>>("PDFTextStripper__endPage")
       .asFunction<
           jni.JniResult Function(
               ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>();
@@ -1115,8 +354,8 @@
   /// End a page. Default implementation is to do nothing. Subclasses may provide additional information.
   ///@param page The page we are about to process.
   ///@throws IOException If there is any error writing to the stream.
-  void endPage1(jni.JniObject page) =>
-      _endPage1(reference, page.reference).check();
+  void endPage(jni.JniObject page) =>
+      _endPage(reference, page.reference).check();
 
   static final _writePage = jniLookup<
           ffi.NativeFunction<
@@ -1132,18 +371,6 @@
   ///@throws IOException If there is an error writing the text.
   void writePage() => _writePage(reference).check();
 
-  static final _overlap = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Float,
-                  ffi.Float, ffi.Float, ffi.Float)>>("PDFTextStripper__overlap")
-      .asFunction<
-          jni.JniResult Function(
-              ffi.Pointer<ffi.Void>, double, double, double, double)>();
-
-  /// from: private boolean overlap(float y1, float height1, float y2, float height2)
-  bool overlap(double y1, double height1, double y2, double height2) =>
-      _overlap(reference, y1, height1, y2, height2).boolean;
-
   static final _writeLineSeparator = jniLookup<
               ffi.NativeFunction<
                   jni.JniResult Function(ffi.Pointer<ffi.Void>)>>(
@@ -1220,23 +447,6 @@
   void writeString1(jni.JniString text) =>
       _writeString1(reference, text.reference).check();
 
-  static final _within = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Float,
-                  ffi.Float, ffi.Float)>>("PDFTextStripper__within")
-      .asFunction<
-          jni.JniResult Function(
-              ffi.Pointer<ffi.Void>, double, double, double)>();
-
-  /// from: private boolean within(float first, float second, float variance)
-  ///
-  /// This will determine of two floating point numbers are within a specified variance.
-  ///@param first The first number to compare to.
-  ///@param second The second number to compare to.
-  ///@param variance The allowed variance.
-  bool within(double first, double second, double variance) =>
-      _within(reference, first, second, variance).boolean;
-
   static final _processTextPosition = jniLookup<
               ffi.NativeFunction<
                   jni.JniResult Function(
@@ -1867,98 +1077,6 @@
   void setArticleEnd(jni.JniString articleEndValue) =>
       _setArticleEnd(reference, articleEndValue.reference).check();
 
-  static final _handleLineSeparation = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-                  ffi.Pointer<ffi.Void>,
-                  ffi.Pointer<ffi.Void>,
-                  ffi.Pointer<ffi.Void>,
-                  ffi.Pointer<ffi.Void>,
-                  ffi.Float)>>("PDFTextStripper__handleLineSeparation")
-      .asFunction<
-          jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>,
-              ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, double)>();
-
-  /// from: private org.apache.pdfbox.text.PDFTextStripper.PositionWrapper handleLineSeparation(org.apache.pdfbox.text.PDFTextStripper.PositionWrapper current, org.apache.pdfbox.text.PDFTextStripper.PositionWrapper lastPosition, org.apache.pdfbox.text.PDFTextStripper.PositionWrapper lastLineStartPosition, float maxHeightForLine)
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  ///
-  /// handles the line separator for a new line given the specified current and previous TextPositions.
-  ///@param current the current text position
-  ///@param lastPosition the previous text position
-  ///@param lastLineStartPosition the last text position that followed a line separator.
-  ///@param maxHeightForLine max height for positions since lastLineStartPosition
-  ///@return start position of the last line
-  ///@throws IOException if something went wrong
-  jni.JniObject handleLineSeparation(
-          jni.JniObject current,
-          jni.JniObject lastPosition,
-          jni.JniObject lastLineStartPosition,
-          double maxHeightForLine) =>
-      jni.JniObject.fromRef(_handleLineSeparation(
-              reference,
-              current.reference,
-              lastPosition.reference,
-              lastLineStartPosition.reference,
-              maxHeightForLine)
-          .object);
-
-  static final _isParagraphSeparation = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-                  ffi.Pointer<ffi.Void>,
-                  ffi.Pointer<ffi.Void>,
-                  ffi.Pointer<ffi.Void>,
-                  ffi.Pointer<ffi.Void>,
-                  ffi.Float)>>("PDFTextStripper__isParagraphSeparation")
-      .asFunction<
-          jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>,
-              ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, double)>();
-
-  /// from: private void isParagraphSeparation(org.apache.pdfbox.text.PDFTextStripper.PositionWrapper position, org.apache.pdfbox.text.PDFTextStripper.PositionWrapper lastPosition, org.apache.pdfbox.text.PDFTextStripper.PositionWrapper lastLineStartPosition, float maxHeightForLine)
-  ///
-  /// tests the relationship between the last text position, the current text position and the last text position that
-  /// followed a line separator to decide if the gap represents a paragraph separation. This should <i>only</i> be
-  /// called for consecutive text positions that first pass the line separation test.
-  ///
-  /// This base implementation tests to see if the lastLineStartPosition is null OR if the current vertical position
-  /// has dropped below the last text vertical position by at least 2.5 times the current text height OR if the current
-  /// horizontal position is indented by at least 2 times the current width of a space character.
-  ///
-  ///
-  ///
-  /// This also attempts to identify text that is indented under a hanging indent.
-  ///
-  ///
-  ///
-  /// This method sets the isParagraphStart and isHangingIndent flags on the current position object.
-  ///
-  ///
-  ///@param position the current text position. This may have its isParagraphStart or isHangingIndent flags set upon
-  /// return.
-  ///@param lastPosition the previous text position (should not be null).
-  ///@param lastLineStartPosition the last text position that followed a line separator, or null.
-  ///@param maxHeightForLine max height for text positions since lasLineStartPosition.
-  void isParagraphSeparation(jni.JniObject position, jni.JniObject lastPosition,
-          jni.JniObject lastLineStartPosition, double maxHeightForLine) =>
-      _isParagraphSeparation(
-              reference,
-              position.reference,
-              lastPosition.reference,
-              lastLineStartPosition.reference,
-              maxHeightForLine)
-          .check();
-
-  static final _multiplyFloat = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Float,
-                  ffi.Float)>>("PDFTextStripper__multiplyFloat")
-      .asFunction<
-          jni.JniResult Function(ffi.Pointer<ffi.Void>, double, double)>();
-
-  /// from: private float multiplyFloat(float value1, float value2)
-  double multiplyFloat(double value1, double value2) =>
-      _multiplyFloat(reference, value1, value2).float;
-
   static final _writeParagraphSeparator = jniLookup<
               ffi.NativeFunction<
                   jni.JniResult Function(ffi.Pointer<ffi.Void>)>>(
@@ -2019,27 +1137,6 @@
   ///@throws IOException if something went wrong
   void writePageEnd() => _writePageEnd(reference).check();
 
-  static final _matchListItemPattern = jniLookup<
-              ffi.NativeFunction<
-                  jni.JniResult Function(
-                      ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>>(
-          "PDFTextStripper__matchListItemPattern")
-      .asFunction<
-          jni.JniResult Function(
-              ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>();
-
-  /// from: private java.util.regex.Pattern matchListItemPattern(org.apache.pdfbox.text.PDFTextStripper.PositionWrapper pw)
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  ///
-  /// returns the list item Pattern object that matches the text at the specified PositionWrapper or null if the text
-  /// does not match such a pattern. The list of Patterns tested against is given by the \#getListItemPatterns()
-  /// method. To add to the list, simply override that method (if sub-classing) or explicitly supply your own list
-  /// using \#setListItemPatterns(List).
-  ///@param pw position
-  ///@return the matching pattern
-  jni.JniObject matchListItemPattern(jni.JniObject pw) => jni.JniObject.fromRef(
-      _matchListItemPattern(reference, pw.reference).object);
-
   static final _setListItemPatterns = jniLookup<
               ffi.NativeFunction<
                   jni.JniResult Function(
@@ -2109,140 +1206,4 @@
           jni.JniString string, jni.JniObject patterns) =>
       jni.JniObject.fromRef(
           _matchPattern(string.reference, patterns.reference).object);
-
-  static final _writeLine = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(ffi.Pointer<ffi.Void>,
-                  ffi.Pointer<ffi.Void>)>>("PDFTextStripper__writeLine")
-      .asFunction<
-          jni.JniResult Function(
-              ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>();
-
-  /// from: private void writeLine(java.util.List<org.apache.pdfbox.text.PDFTextStripper.WordWithTextPositions> line)
-  ///
-  /// Write a list of string containing a whole line of a document.
-  ///@param line a list with the words of the given line
-  ///@throws IOException if something went wrong
-  void writeLine(jni.JniObject line) =>
-      _writeLine(reference, line.reference).check();
-
-  static final _normalize = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(ffi.Pointer<ffi.Void>,
-                  ffi.Pointer<ffi.Void>)>>("PDFTextStripper__normalize")
-      .asFunction<
-          jni.JniResult Function(
-              ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>();
-
-  /// from: private java.util.List<org.apache.pdfbox.text.PDFTextStripper.WordWithTextPositions> normalize(java.util.List<org.apache.pdfbox.text.PDFTextStripper.LineItem> line)
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  ///
-  /// Normalize the given list of TextPositions.
-  ///@param line list of TextPositions
-  ///@return a list of strings, one string for every word
-  jni.JniObject normalize(jni.JniObject line) =>
-      jni.JniObject.fromRef(_normalize(reference, line.reference).object);
-
-  static final _handleDirection = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(ffi.Pointer<ffi.Void>,
-                  ffi.Pointer<ffi.Void>)>>("PDFTextStripper__handleDirection")
-      .asFunction<
-          jni.JniResult Function(
-              ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>();
-
-  /// from: private java.lang.String handleDirection(java.lang.String word)
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  ///
-  /// Handles the LTR and RTL direction of the given words. The whole implementation stands and falls with the given
-  /// word. If the word is a full line, the results will be the best. If the word contains of single words or
-  /// characters, the order of the characters in a word or words in a line may wrong, due to RTL and LTR marks and
-  /// characters!
-  ///
-  /// Based on http://www.nesterovsky-bros.com/weblog/2013/07/28/VisualToLogicalConversionInJava.aspx
-  ///@param word The word that shall be processed
-  ///@return new word with the correct direction of the containing characters
-  jni.JniString handleDirection(jni.JniString word) =>
-      jni.JniString.fromRef(_handleDirection(reference, word.reference).object);
-
-  static final _parseBidiFile = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-                  ffi.Pointer<ffi.Void>)>>("PDFTextStripper__parseBidiFile")
-      .asFunction<jni.JniResult Function(ffi.Pointer<ffi.Void>)>();
-
-  /// from: private static void parseBidiFile(java.io.InputStream inputStream)
-  ///
-  /// This method parses the bidi file provided as inputstream.
-  ///@param inputStream - The bidi file as inputstream
-  ///@throws IOException if any line could not be read by the LineNumberReader
-  static void parseBidiFile(jni.JniObject inputStream) =>
-      _parseBidiFile(inputStream.reference).check();
-
-  static final _createWord = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-                  ffi.Pointer<ffi.Void>,
-                  ffi.Pointer<ffi.Void>,
-                  ffi.Pointer<ffi.Void>)>>("PDFTextStripper__createWord")
-      .asFunction<
-          jni.JniResult Function(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>,
-              ffi.Pointer<ffi.Void>)>();
-
-  /// from: private org.apache.pdfbox.text.PDFTextStripper.WordWithTextPositions createWord(java.lang.String word, java.util.List<org.apache.pdfbox.text.TextPosition> wordPositions)
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  ///
-  /// Used within \#normalize(List) to create a single WordWithTextPositions entry.
-  jni.JniObject createWord(jni.JniString word, jni.JniObject wordPositions) =>
-      jni.JniObject.fromRef(
-          _createWord(reference, word.reference, wordPositions.reference)
-              .object);
-
-  static final _normalizeWord = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(ffi.Pointer<ffi.Void>,
-                  ffi.Pointer<ffi.Void>)>>("PDFTextStripper__normalizeWord")
-      .asFunction<
-          jni.JniResult Function(
-              ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>();
-
-  /// from: private java.lang.String normalizeWord(java.lang.String word)
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  ///
-  /// Normalize certain Unicode characters. For example, convert the single "fi" ligature to "f" and "i". Also
-  /// normalises Arabic and Hebrew presentation forms.
-  ///@param word Word to normalize
-  ///@return Normalized word
-  jni.JniString normalizeWord(jni.JniString word) =>
-      jni.JniString.fromRef(_normalizeWord(reference, word.reference).object);
-
-  static final _normalizeAdd = jniLookup<
-          ffi.NativeFunction<
-              jni.JniResult Function(
-                  ffi.Pointer<ffi.Void>,
-                  ffi.Pointer<ffi.Void>,
-                  ffi.Pointer<ffi.Void>,
-                  ffi.Pointer<ffi.Void>,
-                  ffi.Pointer<ffi.Void>)>>("PDFTextStripper__normalizeAdd")
-      .asFunction<
-          jni.JniResult Function(
-              ffi.Pointer<ffi.Void>,
-              ffi.Pointer<ffi.Void>,
-              ffi.Pointer<ffi.Void>,
-              ffi.Pointer<ffi.Void>,
-              ffi.Pointer<ffi.Void>)>();
-
-  /// from: private java.lang.StringBuilder normalizeAdd(java.util.List<org.apache.pdfbox.text.PDFTextStripper.WordWithTextPositions> normalized, java.lang.StringBuilder lineBuilder, java.util.List<org.apache.pdfbox.text.TextPosition> wordPositions, org.apache.pdfbox.text.PDFTextStripper.LineItem item)
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  ///
-  /// Used within \#normalize(List) to handle a TextPosition.
-  ///@return The StringBuilder that must be used when calling this method.
-  jni.JniObject normalizeAdd(
-          jni.JniObject normalized,
-          jni.JniObject lineBuilder,
-          jni.JniObject wordPositions,
-          jni.JniObject item) =>
-      jni.JniObject.fromRef(_normalizeAdd(reference, normalized.reference,
-              lineBuilder.reference, wordPositions.reference, item.reference)
-          .object);
 }
diff --git a/pkgs/jnigen/example/pdfbox_plugin/src/third_party/pdfbox_plugin.c b/pkgs/jnigen/example/pdfbox_plugin/src/third_party/pdfbox_plugin.c
index 7426e2d..71dcd32 100644
--- a/pkgs/jnigen/example/pdfbox_plugin/src/third_party/pdfbox_plugin.c
+++ b/pkgs/jnigen/example/pdfbox_plugin/src/third_party/pdfbox_plugin.c
@@ -217,176 +217,6 @@
   return (JniResult){.result = {.j = 0}, .exception = check_exception()};
 }
 
-jmethodID _m_PDDocument__findSignatureField = NULL;
-FFI_PLUGIN_EXPORT
-JniResult PDDocument__findSignatureField(jobject self_,
-                                         jobject fieldIterator,
-                                         jobject sigObject) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_method(_c_PDDocument, &_m_PDDocument__findSignatureField,
-              "findSignatureField",
-              "(Ljava/util/Iterator;Lorg/apache/pdfbox/pdmodel/interactive/"
-              "digitalsignature/PDSignature;)Lorg/apache/pdfbox/pdmodel/"
-              "interactive/form/PDSignatureField;");
-  if (_m_PDDocument__findSignatureField == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  jobject _result = (*jniEnv)->CallObjectMethod(
-      jniEnv, self_, _m_PDDocument__findSignatureField, fieldIterator,
-      sigObject);
-  return (JniResult){.result = {.l = to_global_ref(_result)},
-                     .exception = check_exception()};
-}
-
-jmethodID _m_PDDocument__checkSignatureField = NULL;
-FFI_PLUGIN_EXPORT
-JniResult PDDocument__checkSignatureField(jobject self_,
-                                          jobject fieldIterator,
-                                          jobject signatureField) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_method(_c_PDDocument, &_m_PDDocument__checkSignatureField,
-              "checkSignatureField",
-              "(Ljava/util/Iterator;Lorg/apache/pdfbox/pdmodel/interactive/"
-              "form/PDSignatureField;)Z");
-  if (_m_PDDocument__checkSignatureField == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  uint8_t _result = (*jniEnv)->CallBooleanMethod(
-      jniEnv, self_, _m_PDDocument__checkSignatureField, fieldIterator,
-      signatureField);
-  return (JniResult){.result = {.z = _result}, .exception = check_exception()};
-}
-
-jmethodID _m_PDDocument__checkSignatureAnnotation = NULL;
-FFI_PLUGIN_EXPORT
-JniResult PDDocument__checkSignatureAnnotation(jobject self_,
-                                               jobject annotations,
-                                               jobject widget) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_method(_c_PDDocument, &_m_PDDocument__checkSignatureAnnotation,
-              "checkSignatureAnnotation",
-              "(Ljava/util/List;Lorg/apache/pdfbox/pdmodel/interactive/"
-              "annotation/PDAnnotationWidget;)Z");
-  if (_m_PDDocument__checkSignatureAnnotation == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  uint8_t _result = (*jniEnv)->CallBooleanMethod(
-      jniEnv, self_, _m_PDDocument__checkSignatureAnnotation, annotations,
-      widget);
-  return (JniResult){.result = {.z = _result}, .exception = check_exception()};
-}
-
-jmethodID _m_PDDocument__prepareVisibleSignature = NULL;
-FFI_PLUGIN_EXPORT
-JniResult PDDocument__prepareVisibleSignature(jobject self_,
-                                              jobject signatureField,
-                                              jobject acroForm,
-                                              jobject visualSignature) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_method(_c_PDDocument, &_m_PDDocument__prepareVisibleSignature,
-              "prepareVisibleSignature",
-              "(Lorg/apache/pdfbox/pdmodel/interactive/form/"
-              "PDSignatureField;Lorg/apache/pdfbox/pdmodel/interactive/form/"
-              "PDAcroForm;Lorg/apache/pdfbox/cos/COSDocument;)V");
-  if (_m_PDDocument__prepareVisibleSignature == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  (*jniEnv)->CallVoidMethod(jniEnv, self_,
-                            _m_PDDocument__prepareVisibleSignature,
-                            signatureField, acroForm, visualSignature);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jmethodID _m_PDDocument__assignSignatureRectangle = NULL;
-FFI_PLUGIN_EXPORT
-JniResult PDDocument__assignSignatureRectangle(jobject self_,
-                                               jobject signatureField,
-                                               jobject annotDict) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_method(_c_PDDocument, &_m_PDDocument__assignSignatureRectangle,
-              "assignSignatureRectangle",
-              "(Lorg/apache/pdfbox/pdmodel/interactive/form/"
-              "PDSignatureField;Lorg/apache/pdfbox/cos/COSDictionary;)V");
-  if (_m_PDDocument__assignSignatureRectangle == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  (*jniEnv)->CallVoidMethod(jniEnv, self_,
-                            _m_PDDocument__assignSignatureRectangle,
-                            signatureField, annotDict);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jmethodID _m_PDDocument__assignAppearanceDictionary = NULL;
-FFI_PLUGIN_EXPORT
-JniResult PDDocument__assignAppearanceDictionary(jobject self_,
-                                                 jobject signatureField,
-                                                 jobject apDict) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_method(_c_PDDocument, &_m_PDDocument__assignAppearanceDictionary,
-              "assignAppearanceDictionary",
-              "(Lorg/apache/pdfbox/pdmodel/interactive/form/"
-              "PDSignatureField;Lorg/apache/pdfbox/cos/COSDictionary;)V");
-  if (_m_PDDocument__assignAppearanceDictionary == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  (*jniEnv)->CallVoidMethod(jniEnv, self_,
-                            _m_PDDocument__assignAppearanceDictionary,
-                            signatureField, apDict);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jmethodID _m_PDDocument__assignAcroFormDefaultResource = NULL;
-FFI_PLUGIN_EXPORT
-JniResult PDDocument__assignAcroFormDefaultResource(jobject self_,
-                                                    jobject acroForm,
-                                                    jobject newDict) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_method(_c_PDDocument, &_m_PDDocument__assignAcroFormDefaultResource,
-              "assignAcroFormDefaultResource",
-              "(Lorg/apache/pdfbox/pdmodel/interactive/form/PDAcroForm;Lorg/"
-              "apache/pdfbox/cos/COSDictionary;)V");
-  if (_m_PDDocument__assignAcroFormDefaultResource == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  (*jniEnv)->CallVoidMethod(jniEnv, self_,
-                            _m_PDDocument__assignAcroFormDefaultResource,
-                            acroForm, newDict);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jmethodID _m_PDDocument__prepareNonVisibleSignature = NULL;
-FFI_PLUGIN_EXPORT
-JniResult PDDocument__prepareNonVisibleSignature(jobject self_,
-                                                 jobject signatureField) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_method(
-      _c_PDDocument, &_m_PDDocument__prepareNonVisibleSignature,
-      "prepareNonVisibleSignature",
-      "(Lorg/apache/pdfbox/pdmodel/interactive/form/PDSignatureField;)V");
-  if (_m_PDDocument__prepareNonVisibleSignature == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  (*jniEnv)->CallVoidMethod(
-      jniEnv, self_, _m_PDDocument__prepareNonVisibleSignature, signatureField);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
 jmethodID _m_PDDocument__addSignatureField = NULL;
 FFI_PLUGIN_EXPORT
 JniResult PDDocument__addSignatureField(jobject self_,
@@ -648,23 +478,6 @@
   return (JniResult){.result = {.j = 0}, .exception = check_exception()};
 }
 
-jmethodID _m_PDDocument__getFontsToSubset = NULL;
-FFI_PLUGIN_EXPORT
-JniResult PDDocument__getFontsToSubset(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_method(_c_PDDocument, &_m_PDDocument__getFontsToSubset,
-              "getFontsToSubset", "()Ljava/util/Set;");
-  if (_m_PDDocument__getFontsToSubset == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  jobject _result = (*jniEnv)->CallObjectMethod(
-      jniEnv, self_, _m_PDDocument__getFontsToSubset);
-  return (JniResult){.result = {.l = to_global_ref(_result)},
-                     .exception = check_exception()};
-}
-
 jmethodID _m_PDDocument__load = NULL;
 FFI_PLUGIN_EXPORT
 JniResult PDDocument__load(jobject file) {
@@ -791,80 +604,78 @@
 
 jmethodID _m_PDDocument__load6 = NULL;
 FFI_PLUGIN_EXPORT
-JniResult PDDocument__load6(jobject raFile,
-                            jobject password,
-                            jobject keyStore,
-                            jobject alias,
-                            jobject memUsageSetting) {
+JniResult PDDocument__load6(jobject input) {
   load_env();
   load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
   if (_c_PDDocument == NULL)
     return (JniResult){.result = {.j = 0}, .exception = check_exception()};
   load_static_method(
       _c_PDDocument, &_m_PDDocument__load6, "load",
-      "(Lorg/apache/pdfbox/io/RandomAccessBufferedFileInputStream;Ljava/lang/"
-      "String;Ljava/io/InputStream;Ljava/lang/String;Lorg/apache/pdfbox/io/"
-      "MemoryUsageSetting;)Lorg/apache/pdfbox/pdmodel/PDDocument;");
+      "(Ljava/io/InputStream;)Lorg/apache/pdfbox/pdmodel/PDDocument;");
   if (_m_PDDocument__load6 == NULL)
     return (JniResult){.result = {.j = 0}, .exception = check_exception()};
   jobject _result = (*jniEnv)->CallStaticObjectMethod(
-      jniEnv, _c_PDDocument, _m_PDDocument__load6, raFile, password, keyStore,
-      alias, memUsageSetting);
+      jniEnv, _c_PDDocument, _m_PDDocument__load6, input);
   return (JniResult){.result = {.l = to_global_ref(_result)},
                      .exception = check_exception()};
 }
 
 jmethodID _m_PDDocument__load7 = NULL;
 FFI_PLUGIN_EXPORT
-JniResult PDDocument__load7(jobject input) {
+JniResult PDDocument__load7(jobject input, jobject memUsageSetting) {
   load_env();
   load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
   if (_c_PDDocument == NULL)
     return (JniResult){.result = {.j = 0}, .exception = check_exception()};
   load_static_method(
       _c_PDDocument, &_m_PDDocument__load7, "load",
-      "(Ljava/io/InputStream;)Lorg/apache/pdfbox/pdmodel/PDDocument;");
+      "(Ljava/io/InputStream;Lorg/apache/pdfbox/io/MemoryUsageSetting;)Lorg/"
+      "apache/pdfbox/pdmodel/PDDocument;");
   if (_m_PDDocument__load7 == NULL)
     return (JniResult){.result = {.j = 0}, .exception = check_exception()};
   jobject _result = (*jniEnv)->CallStaticObjectMethod(
-      jniEnv, _c_PDDocument, _m_PDDocument__load7, input);
+      jniEnv, _c_PDDocument, _m_PDDocument__load7, input, memUsageSetting);
   return (JniResult){.result = {.l = to_global_ref(_result)},
                      .exception = check_exception()};
 }
 
 jmethodID _m_PDDocument__load8 = NULL;
 FFI_PLUGIN_EXPORT
-JniResult PDDocument__load8(jobject input, jobject memUsageSetting) {
+JniResult PDDocument__load8(jobject input, jobject password) {
   load_env();
   load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
   if (_c_PDDocument == NULL)
     return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_static_method(
-      _c_PDDocument, &_m_PDDocument__load8, "load",
-      "(Ljava/io/InputStream;Lorg/apache/pdfbox/io/MemoryUsageSetting;)Lorg/"
-      "apache/pdfbox/pdmodel/PDDocument;");
+  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){.result = {.j = 0}, .exception = check_exception()};
   jobject _result = (*jniEnv)->CallStaticObjectMethod(
-      jniEnv, _c_PDDocument, _m_PDDocument__load8, input, memUsageSetting);
+      jniEnv, _c_PDDocument, _m_PDDocument__load8, input, password);
   return (JniResult){.result = {.l = to_global_ref(_result)},
                      .exception = check_exception()};
 }
 
 jmethodID _m_PDDocument__load9 = NULL;
 FFI_PLUGIN_EXPORT
-JniResult PDDocument__load9(jobject input, jobject password) {
+JniResult PDDocument__load9(jobject input,
+                            jobject password,
+                            jobject keyStore,
+                            jobject alias) {
   load_env();
   load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
   if (_c_PDDocument == NULL)
     return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_static_method(_c_PDDocument, &_m_PDDocument__load9, "load",
-                     "(Ljava/io/InputStream;Ljava/lang/String;)Lorg/apache/"
-                     "pdfbox/pdmodel/PDDocument;");
+  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){.result = {.j = 0}, .exception = check_exception()};
   jobject _result = (*jniEnv)->CallStaticObjectMethod(
-      jniEnv, _c_PDDocument, _m_PDDocument__load9, input, password);
+      jniEnv, _c_PDDocument, _m_PDDocument__load9, input, password, keyStore,
+      alias);
   return (JniResult){.result = {.l = to_global_ref(_result)},
                      .exception = check_exception()};
 }
@@ -873,21 +684,20 @@
 FFI_PLUGIN_EXPORT
 JniResult PDDocument__load10(jobject input,
                              jobject password,
-                             jobject keyStore,
-                             jobject alias) {
+                             jobject memUsageSetting) {
   load_env();
   load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
   if (_c_PDDocument == NULL)
     return (JniResult){.result = {.j = 0}, .exception = check_exception()};
   load_static_method(
       _c_PDDocument, &_m_PDDocument__load10, "load",
-      "(Ljava/io/InputStream;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/"
-      "String;)Lorg/apache/pdfbox/pdmodel/PDDocument;");
+      "(Ljava/io/InputStream;Ljava/lang/String;Lorg/apache/pdfbox/io/"
+      "MemoryUsageSetting;)Lorg/apache/pdfbox/pdmodel/PDDocument;");
   if (_m_PDDocument__load10 == NULL)
     return (JniResult){.result = {.j = 0}, .exception = check_exception()};
   jobject _result = (*jniEnv)->CallStaticObjectMethod(
-      jniEnv, _c_PDDocument, _m_PDDocument__load10, input, password, keyStore,
-      alias);
+      jniEnv, _c_PDDocument, _m_PDDocument__load10, input, password,
+      memUsageSetting);
   return (JniResult){.result = {.l = to_global_ref(_result)},
                      .exception = check_exception()};
 }
@@ -896,28 +706,6 @@
 FFI_PLUGIN_EXPORT
 JniResult PDDocument__load11(jobject input,
                              jobject password,
-                             jobject memUsageSetting) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_static_method(
-      _c_PDDocument, &_m_PDDocument__load11, "load",
-      "(Ljava/io/InputStream;Ljava/lang/String;Lorg/apache/pdfbox/io/"
-      "MemoryUsageSetting;)Lorg/apache/pdfbox/pdmodel/PDDocument;");
-  if (_m_PDDocument__load11 == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  jobject _result = (*jniEnv)->CallStaticObjectMethod(
-      jniEnv, _c_PDDocument, _m_PDDocument__load11, input, password,
-      memUsageSetting);
-  return (JniResult){.result = {.l = to_global_ref(_result)},
-                     .exception = check_exception()};
-}
-
-jmethodID _m_PDDocument__load12 = NULL;
-FFI_PLUGIN_EXPORT
-JniResult PDDocument__load12(jobject input,
-                             jobject password,
                              jobject keyStore,
                              jobject alias,
                              jobject memUsageSetting) {
@@ -926,50 +714,72 @@
   if (_c_PDDocument == NULL)
     return (JniResult){.result = {.j = 0}, .exception = check_exception()};
   load_static_method(
-      _c_PDDocument, &_m_PDDocument__load12, "load",
+      _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){.result = {.j = 0}, .exception = check_exception()};
+  jobject _result = (*jniEnv)->CallStaticObjectMethod(
+      jniEnv, _c_PDDocument, _m_PDDocument__load11, input, password, keyStore,
+      alias, memUsageSetting);
+  return (JniResult){.result = {.l = to_global_ref(_result)},
+                     .exception = check_exception()};
+}
+
+jmethodID _m_PDDocument__load12 = NULL;
+FFI_PLUGIN_EXPORT
+JniResult PDDocument__load12(jobject input) {
+  load_env();
+  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
+  if (_c_PDDocument == NULL)
+    return (JniResult){.result = {.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){.result = {.j = 0}, .exception = check_exception()};
   jobject _result = (*jniEnv)->CallStaticObjectMethod(
-      jniEnv, _c_PDDocument, _m_PDDocument__load12, input, password, keyStore,
-      alias, memUsageSetting);
+      jniEnv, _c_PDDocument, _m_PDDocument__load12, input);
   return (JniResult){.result = {.l = to_global_ref(_result)},
                      .exception = check_exception()};
 }
 
 jmethodID _m_PDDocument__load13 = NULL;
 FFI_PLUGIN_EXPORT
-JniResult PDDocument__load13(jobject input) {
+JniResult PDDocument__load13(jobject input, jobject password) {
   load_env();
   load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
   if (_c_PDDocument == NULL)
     return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_static_method(_c_PDDocument, &_m_PDDocument__load13, "load",
-                     "([B)Lorg/apache/pdfbox/pdmodel/PDDocument;");
+  load_static_method(
+      _c_PDDocument, &_m_PDDocument__load13, "load",
+      "([BLjava/lang/String;)Lorg/apache/pdfbox/pdmodel/PDDocument;");
   if (_m_PDDocument__load13 == NULL)
     return (JniResult){.result = {.j = 0}, .exception = check_exception()};
   jobject _result = (*jniEnv)->CallStaticObjectMethod(
-      jniEnv, _c_PDDocument, _m_PDDocument__load13, input);
+      jniEnv, _c_PDDocument, _m_PDDocument__load13, input, password);
   return (JniResult){.result = {.l = to_global_ref(_result)},
                      .exception = check_exception()};
 }
 
 jmethodID _m_PDDocument__load14 = NULL;
 FFI_PLUGIN_EXPORT
-JniResult PDDocument__load14(jobject input, jobject password) {
+JniResult PDDocument__load14(jobject input,
+                             jobject password,
+                             jobject keyStore,
+                             jobject alias) {
   load_env();
   load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
   if (_c_PDDocument == NULL)
     return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_static_method(
-      _c_PDDocument, &_m_PDDocument__load14, "load",
-      "([BLjava/lang/String;)Lorg/apache/pdfbox/pdmodel/PDDocument;");
+  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){.result = {.j = 0}, .exception = check_exception()};
   jobject _result = (*jniEnv)->CallStaticObjectMethod(
-      jniEnv, _c_PDDocument, _m_PDDocument__load14, input, password);
+      jniEnv, _c_PDDocument, _m_PDDocument__load14, input, password, keyStore,
+      alias);
   return (JniResult){.result = {.l = to_global_ref(_result)},
                      .exception = check_exception()};
 }
@@ -979,28 +789,6 @@
 JniResult PDDocument__load15(jobject input,
                              jobject password,
                              jobject keyStore,
-                             jobject alias) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.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/pdmodel/PDDocument;");
-  if (_m_PDDocument__load15 == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  jobject _result = (*jniEnv)->CallStaticObjectMethod(
-      jniEnv, _c_PDDocument, _m_PDDocument__load15, input, password, keyStore,
-      alias);
-  return (JniResult){.result = {.l = to_global_ref(_result)},
-                     .exception = check_exception()};
-}
-
-jmethodID _m_PDDocument__load16 = NULL;
-FFI_PLUGIN_EXPORT
-JniResult PDDocument__load16(jobject input,
-                             jobject password,
-                             jobject keyStore,
                              jobject alias,
                              jobject memUsageSetting) {
   load_env();
@@ -1008,13 +796,13 @@
   if (_c_PDDocument == NULL)
     return (JniResult){.result = {.j = 0}, .exception = check_exception()};
   load_static_method(
-      _c_PDDocument, &_m_PDDocument__load16, "load",
+      _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__load16 == NULL)
+  if (_m_PDDocument__load15 == NULL)
     return (JniResult){.result = {.j = 0}, .exception = check_exception()};
   jobject _result = (*jniEnv)->CallStaticObjectMethod(
-      jniEnv, _c_PDDocument, _m_PDDocument__load16, input, password, keyStore,
+      jniEnv, _c_PDDocument, _m_PDDocument__load15, input, password, keyStore,
       alias, memUsageSetting);
   return (JniResult){.result = {.l = to_global_ref(_result)},
                      .exception = check_exception()};
@@ -1347,364 +1135,6 @@
   return (JniResult){.result = {.j = 0}, .exception = check_exception()};
 }
 
-jfieldID _f_PDDocument__RESERVE_BYTE_RANGE = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDDocument__RESERVE_BYTE_RANGE() {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_static_field(_c_PDDocument, &_f_PDDocument__RESERVE_BYTE_RANGE,
-                    "RESERVE_BYTE_RANGE", "[I");
-  jobject _result = to_global_ref((*jniEnv)->GetStaticObjectField(
-      jniEnv, _c_PDDocument, _f_PDDocument__RESERVE_BYTE_RANGE));
-  return (JniResult){.result = {.l = _result}, .exception = check_exception()};
-}
-
-jfieldID _f_PDDocument__LOG = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDDocument__LOG() {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_static_field(_c_PDDocument, &_f_PDDocument__LOG, "LOG",
-                    "Lorg/apache/commons/logging/Log;");
-  jobject _result = to_global_ref((*jniEnv)->GetStaticObjectField(
-      jniEnv, _c_PDDocument, _f_PDDocument__LOG));
-  return (JniResult){.result = {.l = _result}, .exception = check_exception()};
-}
-
-jfieldID _f_PDDocument__document = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDDocument__document(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDDocument, &_f_PDDocument__document, "document",
-             "Lorg/apache/pdfbox/cos/COSDocument;");
-  jobject _result = to_global_ref(
-      (*jniEnv)->GetObjectField(jniEnv, self_, _f_PDDocument__document));
-  return (JniResult){.result = {.l = _result}, .exception = check_exception()};
-}
-
-jfieldID _f_PDDocument__documentInformation = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDDocument__documentInformation(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDDocument, &_f_PDDocument__documentInformation,
-             "documentInformation",
-             "Lorg/apache/pdfbox/pdmodel/PDDocumentInformation;");
-  jobject _result = to_global_ref((*jniEnv)->GetObjectField(
-      jniEnv, self_, _f_PDDocument__documentInformation));
-  return (JniResult){.result = {.l = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDDocument__documentInformation(jobject self_, jobject value) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDDocument, &_f_PDDocument__documentInformation,
-             "documentInformation",
-             "Lorg/apache/pdfbox/pdmodel/PDDocumentInformation;");
-  (*jniEnv)->SetObjectField(jniEnv, self_, _f_PDDocument__documentInformation,
-                            value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDDocument__documentCatalog = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDDocument__documentCatalog(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDDocument, &_f_PDDocument__documentCatalog, "documentCatalog",
-             "Lorg/apache/pdfbox/pdmodel/PDDocumentCatalog;");
-  jobject _result = to_global_ref(
-      (*jniEnv)->GetObjectField(jniEnv, self_, _f_PDDocument__documentCatalog));
-  return (JniResult){.result = {.l = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDDocument__documentCatalog(jobject self_, jobject value) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDDocument, &_f_PDDocument__documentCatalog, "documentCatalog",
-             "Lorg/apache/pdfbox/pdmodel/PDDocumentCatalog;");
-  (*jniEnv)->SetObjectField(jniEnv, self_, _f_PDDocument__documentCatalog,
-                            value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDDocument__encryption = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDDocument__encryption(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDDocument, &_f_PDDocument__encryption, "encryption",
-             "Lorg/apache/pdfbox/pdmodel/encryption/PDEncryption;");
-  jobject _result = to_global_ref(
-      (*jniEnv)->GetObjectField(jniEnv, self_, _f_PDDocument__encryption));
-  return (JniResult){.result = {.l = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDDocument__encryption(jobject self_, jobject value) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDDocument, &_f_PDDocument__encryption, "encryption",
-             "Lorg/apache/pdfbox/pdmodel/encryption/PDEncryption;");
-  (*jniEnv)->SetObjectField(jniEnv, self_, _f_PDDocument__encryption, value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDDocument__allSecurityToBeRemoved = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDDocument__allSecurityToBeRemoved(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDDocument, &_f_PDDocument__allSecurityToBeRemoved,
-             "allSecurityToBeRemoved", "Z");
-  uint8_t _result = (*jniEnv)->GetBooleanField(
-      jniEnv, self_, _f_PDDocument__allSecurityToBeRemoved);
-  return (JniResult){.result = {.z = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDDocument__allSecurityToBeRemoved(jobject self_, uint8_t value) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDDocument, &_f_PDDocument__allSecurityToBeRemoved,
-             "allSecurityToBeRemoved", "Z");
-  (*jniEnv)->SetBooleanField(jniEnv, self_,
-                             _f_PDDocument__allSecurityToBeRemoved, value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDDocument__documentId = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDDocument__documentId(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDDocument, &_f_PDDocument__documentId, "documentId",
-             "Ljava/lang/Long;");
-  jobject _result = to_global_ref(
-      (*jniEnv)->GetObjectField(jniEnv, self_, _f_PDDocument__documentId));
-  return (JniResult){.result = {.l = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDDocument__documentId(jobject self_, jobject value) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDDocument, &_f_PDDocument__documentId, "documentId",
-             "Ljava/lang/Long;");
-  (*jniEnv)->SetObjectField(jniEnv, self_, _f_PDDocument__documentId, value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDDocument__pdfSource = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDDocument__pdfSource(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDDocument, &_f_PDDocument__pdfSource, "pdfSource",
-             "Lorg/apache/pdfbox/io/RandomAccessRead;");
-  jobject _result = to_global_ref(
-      (*jniEnv)->GetObjectField(jniEnv, self_, _f_PDDocument__pdfSource));
-  return (JniResult){.result = {.l = _result}, .exception = check_exception()};
-}
-
-jfieldID _f_PDDocument__accessPermission = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDDocument__accessPermission(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDDocument, &_f_PDDocument__accessPermission,
-             "accessPermission",
-             "Lorg/apache/pdfbox/pdmodel/encryption/AccessPermission;");
-  jobject _result = to_global_ref((*jniEnv)->GetObjectField(
-      jniEnv, self_, _f_PDDocument__accessPermission));
-  return (JniResult){.result = {.l = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDDocument__accessPermission(jobject self_, jobject value) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDDocument, &_f_PDDocument__accessPermission,
-             "accessPermission",
-             "Lorg/apache/pdfbox/pdmodel/encryption/AccessPermission;");
-  (*jniEnv)->SetObjectField(jniEnv, self_, _f_PDDocument__accessPermission,
-                            value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDDocument__fontsToSubset = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDDocument__fontsToSubset(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDDocument, &_f_PDDocument__fontsToSubset, "fontsToSubset",
-             "Ljava/util/Set;");
-  jobject _result = to_global_ref(
-      (*jniEnv)->GetObjectField(jniEnv, self_, _f_PDDocument__fontsToSubset));
-  return (JniResult){.result = {.l = _result}, .exception = check_exception()};
-}
-
-jfieldID _f_PDDocument__fontsToClose = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDDocument__fontsToClose(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDDocument, &_f_PDDocument__fontsToClose, "fontsToClose",
-             "Ljava/util/Set;");
-  jobject _result = to_global_ref(
-      (*jniEnv)->GetObjectField(jniEnv, self_, _f_PDDocument__fontsToClose));
-  return (JniResult){.result = {.l = _result}, .exception = check_exception()};
-}
-
-jfieldID _f_PDDocument__signInterface = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDDocument__signInterface(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDDocument, &_f_PDDocument__signInterface, "signInterface",
-             "Lorg/apache/pdfbox/pdmodel/interactive/digitalsignature/"
-             "SignatureInterface;");
-  jobject _result = to_global_ref(
-      (*jniEnv)->GetObjectField(jniEnv, self_, _f_PDDocument__signInterface));
-  return (JniResult){.result = {.l = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDDocument__signInterface(jobject self_, jobject value) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDDocument, &_f_PDDocument__signInterface, "signInterface",
-             "Lorg/apache/pdfbox/pdmodel/interactive/digitalsignature/"
-             "SignatureInterface;");
-  (*jniEnv)->SetObjectField(jniEnv, self_, _f_PDDocument__signInterface, value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDDocument__signingSupport = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDDocument__signingSupport(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDDocument, &_f_PDDocument__signingSupport, "signingSupport",
-             "Lorg/apache/pdfbox/pdmodel/interactive/digitalsignature/"
-             "SigningSupport;");
-  jobject _result = to_global_ref(
-      (*jniEnv)->GetObjectField(jniEnv, self_, _f_PDDocument__signingSupport));
-  return (JniResult){.result = {.l = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDDocument__signingSupport(jobject self_, jobject value) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDDocument, &_f_PDDocument__signingSupport, "signingSupport",
-             "Lorg/apache/pdfbox/pdmodel/interactive/digitalsignature/"
-             "SigningSupport;");
-  (*jniEnv)->SetObjectField(jniEnv, self_, _f_PDDocument__signingSupport,
-                            value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDDocument__resourceCache = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDDocument__resourceCache(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDDocument, &_f_PDDocument__resourceCache, "resourceCache",
-             "Lorg/apache/pdfbox/pdmodel/ResourceCache;");
-  jobject _result = to_global_ref(
-      (*jniEnv)->GetObjectField(jniEnv, self_, _f_PDDocument__resourceCache));
-  return (JniResult){.result = {.l = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDDocument__resourceCache(jobject self_, jobject value) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDDocument, &_f_PDDocument__resourceCache, "resourceCache",
-             "Lorg/apache/pdfbox/pdmodel/ResourceCache;");
-  (*jniEnv)->SetObjectField(jniEnv, self_, _f_PDDocument__resourceCache, value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDDocument__signatureAdded = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDDocument__signatureAdded(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDDocument, &_f_PDDocument__signatureAdded, "signatureAdded",
-             "Z");
-  uint8_t _result =
-      (*jniEnv)->GetBooleanField(jniEnv, self_, _f_PDDocument__signatureAdded);
-  return (JniResult){.result = {.z = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDDocument__signatureAdded(jobject self_, uint8_t value) {
-  load_env();
-  load_class_gr(&_c_PDDocument, "org/apache/pdfbox/pdmodel/PDDocument");
-  if (_c_PDDocument == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDDocument, &_f_PDDocument__signatureAdded, "signatureAdded",
-             "Z");
-  (*jniEnv)->SetBooleanField(jniEnv, self_, _f_PDDocument__signatureAdded,
-                             value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
 // org.apache.pdfbox.pdmodel.PDDocumentInformation
 jclass _c_PDDocumentInformation = NULL;
 
@@ -2167,21 +1597,6 @@
   return (JniResult){.result = {.j = 0}, .exception = check_exception()};
 }
 
-jfieldID _f_PDDocumentInformation__info = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDDocumentInformation__info(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDDocumentInformation,
-                "org/apache/pdfbox/pdmodel/PDDocumentInformation");
-  if (_c_PDDocumentInformation == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDDocumentInformation, &_f_PDDocumentInformation__info, "info",
-             "Lorg/apache/pdfbox/cos/COSDictionary;");
-  jobject _result = to_global_ref(
-      (*jniEnv)->GetObjectField(jniEnv, self_, _f_PDDocumentInformation__info));
-  return (JniResult){.result = {.l = _result}, .exception = check_exception()};
-}
-
 // org.apache.pdfbox.text.PDFTextStripper
 jclass _c_PDFTextStripper = NULL;
 
@@ -2218,21 +1633,6 @@
                      .exception = check_exception()};
 }
 
-jmethodID _m_PDFTextStripper__resetEngine = NULL;
-FFI_PLUGIN_EXPORT
-JniResult PDFTextStripper__resetEngine(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_method(_c_PDFTextStripper, &_m_PDFTextStripper__resetEngine,
-              "resetEngine", "()V");
-  if (_m_PDFTextStripper__resetEngine == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDFTextStripper__resetEngine);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
 jmethodID _m_PDFTextStripper__writeText = NULL;
 FFI_PLUGIN_EXPORT
 JniResult PDFTextStripper__writeText(jobject self_,
@@ -2315,22 +1715,6 @@
   return (JniResult){.result = {.j = 0}, .exception = check_exception()};
 }
 
-jmethodID _m_PDFTextStripper__fillBeadRectangles = NULL;
-FFI_PLUGIN_EXPORT
-JniResult PDFTextStripper__fillBeadRectangles(jobject self_, jobject page) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_method(_c_PDFTextStripper, &_m_PDFTextStripper__fillBeadRectangles,
-              "fillBeadRectangles", "(Lorg/apache/pdfbox/pdmodel/PDPage;)V");
-  if (_m_PDFTextStripper__fillBeadRectangles == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  (*jniEnv)->CallVoidMethod(jniEnv, self_,
-                            _m_PDFTextStripper__fillBeadRectangles, page);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
 jmethodID _m_PDFTextStripper__startArticle = NULL;
 FFI_PLUGIN_EXPORT
 JniResult PDFTextStripper__startArticle(jobject self_) {
@@ -2377,34 +1761,33 @@
   return (JniResult){.result = {.j = 0}, .exception = check_exception()};
 }
 
-jmethodID _m_PDFTextStripper__startPage1 = NULL;
+jmethodID _m_PDFTextStripper__startPage = NULL;
 FFI_PLUGIN_EXPORT
-JniResult PDFTextStripper__startPage1(jobject self_, jobject page) {
+JniResult PDFTextStripper__startPage(jobject self_, jobject page) {
   load_env();
   load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
   if (_c_PDFTextStripper == NULL)
     return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_method(_c_PDFTextStripper, &_m_PDFTextStripper__startPage1, "startPage",
+  load_method(_c_PDFTextStripper, &_m_PDFTextStripper__startPage, "startPage",
               "(Lorg/apache/pdfbox/pdmodel/PDPage;)V");
-  if (_m_PDFTextStripper__startPage1 == NULL)
+  if (_m_PDFTextStripper__startPage == NULL)
     return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDFTextStripper__startPage1,
-                            page);
+  (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDFTextStripper__startPage, page);
   return (JniResult){.result = {.j = 0}, .exception = check_exception()};
 }
 
-jmethodID _m_PDFTextStripper__endPage1 = NULL;
+jmethodID _m_PDFTextStripper__endPage = NULL;
 FFI_PLUGIN_EXPORT
-JniResult PDFTextStripper__endPage1(jobject self_, jobject page) {
+JniResult PDFTextStripper__endPage(jobject self_, jobject page) {
   load_env();
   load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
   if (_c_PDFTextStripper == NULL)
     return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_method(_c_PDFTextStripper, &_m_PDFTextStripper__endPage1, "endPage",
+  load_method(_c_PDFTextStripper, &_m_PDFTextStripper__endPage, "endPage",
               "(Lorg/apache/pdfbox/pdmodel/PDPage;)V");
-  if (_m_PDFTextStripper__endPage1 == NULL)
+  if (_m_PDFTextStripper__endPage == NULL)
     return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDFTextStripper__endPage1, page);
+  (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDFTextStripper__endPage, page);
   return (JniResult){.result = {.j = 0}, .exception = check_exception()};
 }
 
@@ -2423,26 +1806,6 @@
   return (JniResult){.result = {.j = 0}, .exception = check_exception()};
 }
 
-jmethodID _m_PDFTextStripper__overlap = NULL;
-FFI_PLUGIN_EXPORT
-JniResult PDFTextStripper__overlap(jobject self_,
-                                   float y1,
-                                   float height1,
-                                   float y2,
-                                   float height2) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_method(_c_PDFTextStripper, &_m_PDFTextStripper__overlap, "overlap",
-              "(FFFF)Z");
-  if (_m_PDFTextStripper__overlap == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  uint8_t _result = (*jniEnv)->CallBooleanMethod(
-      jniEnv, self_, _m_PDFTextStripper__overlap, y1, height1, y2, height2);
-  return (JniResult){.result = {.z = _result}, .exception = check_exception()};
-}
-
 jmethodID _m_PDFTextStripper__writeLineSeparator = NULL;
 FFI_PLUGIN_EXPORT
 JniResult PDFTextStripper__writeLineSeparator(jobject self_) {
@@ -2525,25 +1888,6 @@
   return (JniResult){.result = {.j = 0}, .exception = check_exception()};
 }
 
-jmethodID _m_PDFTextStripper__within = NULL;
-FFI_PLUGIN_EXPORT
-JniResult PDFTextStripper__within(jobject self_,
-                                  float first,
-                                  float second,
-                                  float variance) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_method(_c_PDFTextStripper, &_m_PDFTextStripper__within, "within",
-              "(FFF)Z");
-  if (_m_PDFTextStripper__within == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  uint8_t _result = (*jniEnv)->CallBooleanMethod(
-      jniEnv, self_, _m_PDFTextStripper__within, first, second, variance);
-  return (JniResult){.result = {.z = _result}, .exception = check_exception()};
-}
-
 jmethodID _m_PDFTextStripper__processTextPosition = NULL;
 FFI_PLUGIN_EXPORT
 JniResult PDFTextStripper__processTextPosition(jobject self_, jobject text) {
@@ -3291,74 +2635,6 @@
   return (JniResult){.result = {.j = 0}, .exception = check_exception()};
 }
 
-jmethodID _m_PDFTextStripper__handleLineSeparation = NULL;
-FFI_PLUGIN_EXPORT
-JniResult PDFTextStripper__handleLineSeparation(jobject self_,
-                                                jobject current,
-                                                jobject lastPosition,
-                                                jobject lastLineStartPosition,
-                                                float maxHeightForLine) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_method(_c_PDFTextStripper, &_m_PDFTextStripper__handleLineSeparation,
-              "handleLineSeparation",
-              "(Lorg/apache/pdfbox/text/PDFTextStripper$PositionWrapper;Lorg/"
-              "apache/pdfbox/text/PDFTextStripper$PositionWrapper;Lorg/apache/"
-              "pdfbox/text/PDFTextStripper$PositionWrapper;F)Lorg/apache/"
-              "pdfbox/text/PDFTextStripper$PositionWrapper;");
-  if (_m_PDFTextStripper__handleLineSeparation == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  jobject _result = (*jniEnv)->CallObjectMethod(
-      jniEnv, self_, _m_PDFTextStripper__handleLineSeparation, current,
-      lastPosition, lastLineStartPosition, maxHeightForLine);
-  return (JniResult){.result = {.l = to_global_ref(_result)},
-                     .exception = check_exception()};
-}
-
-jmethodID _m_PDFTextStripper__isParagraphSeparation = NULL;
-FFI_PLUGIN_EXPORT
-JniResult PDFTextStripper__isParagraphSeparation(jobject self_,
-                                                 jobject position,
-                                                 jobject lastPosition,
-                                                 jobject lastLineStartPosition,
-                                                 float maxHeightForLine) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_method(_c_PDFTextStripper, &_m_PDFTextStripper__isParagraphSeparation,
-              "isParagraphSeparation",
-              "(Lorg/apache/pdfbox/text/PDFTextStripper$PositionWrapper;Lorg/"
-              "apache/pdfbox/text/PDFTextStripper$PositionWrapper;Lorg/apache/"
-              "pdfbox/text/PDFTextStripper$PositionWrapper;F)V");
-  if (_m_PDFTextStripper__isParagraphSeparation == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  (*jniEnv)->CallVoidMethod(
-      jniEnv, self_, _m_PDFTextStripper__isParagraphSeparation, position,
-      lastPosition, lastLineStartPosition, maxHeightForLine);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jmethodID _m_PDFTextStripper__multiplyFloat = NULL;
-FFI_PLUGIN_EXPORT
-JniResult PDFTextStripper__multiplyFloat(jobject self_,
-                                         float value1,
-                                         float value2) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_method(_c_PDFTextStripper, &_m_PDFTextStripper__multiplyFloat,
-              "multiplyFloat", "(FF)F");
-  if (_m_PDFTextStripper__multiplyFloat == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  float _result = (*jniEnv)->CallFloatMethod(
-      jniEnv, self_, _m_PDFTextStripper__multiplyFloat, value1, value2);
-  return (JniResult){.result = {.f = _result}, .exception = check_exception()};
-}
-
 jmethodID _m_PDFTextStripper__writeParagraphSeparator = NULL;
 FFI_PLUGIN_EXPORT
 JniResult PDFTextStripper__writeParagraphSeparator(jobject self_) {
@@ -3437,25 +2713,6 @@
   return (JniResult){.result = {.j = 0}, .exception = check_exception()};
 }
 
-jmethodID _m_PDFTextStripper__matchListItemPattern = NULL;
-FFI_PLUGIN_EXPORT
-JniResult PDFTextStripper__matchListItemPattern(jobject self_, jobject pw) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_method(_c_PDFTextStripper, &_m_PDFTextStripper__matchListItemPattern,
-              "matchListItemPattern",
-              "(Lorg/apache/pdfbox/text/PDFTextStripper$PositionWrapper;)Ljava/"
-              "util/regex/Pattern;");
-  if (_m_PDFTextStripper__matchListItemPattern == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  jobject _result = (*jniEnv)->CallObjectMethod(
-      jniEnv, self_, _m_PDFTextStripper__matchListItemPattern, pw);
-  return (JniResult){.result = {.l = to_global_ref(_result)},
-                     .exception = check_exception()};
-}
-
 jmethodID _m_PDFTextStripper__setListItemPatterns = NULL;
 FFI_PLUGIN_EXPORT
 JniResult PDFTextStripper__setListItemPatterns(jobject self_,
@@ -3509,207 +2766,6 @@
                      .exception = check_exception()};
 }
 
-jmethodID _m_PDFTextStripper__writeLine = NULL;
-FFI_PLUGIN_EXPORT
-JniResult PDFTextStripper__writeLine(jobject self_, jobject line) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_method(_c_PDFTextStripper, &_m_PDFTextStripper__writeLine, "writeLine",
-              "(Ljava/util/List;)V");
-  if (_m_PDFTextStripper__writeLine == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_PDFTextStripper__writeLine, line);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jmethodID _m_PDFTextStripper__normalize = NULL;
-FFI_PLUGIN_EXPORT
-JniResult PDFTextStripper__normalize(jobject self_, jobject line) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_method(_c_PDFTextStripper, &_m_PDFTextStripper__normalize, "normalize",
-              "(Ljava/util/List;)Ljava/util/List;");
-  if (_m_PDFTextStripper__normalize == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  jobject _result = (*jniEnv)->CallObjectMethod(
-      jniEnv, self_, _m_PDFTextStripper__normalize, line);
-  return (JniResult){.result = {.l = to_global_ref(_result)},
-                     .exception = check_exception()};
-}
-
-jmethodID _m_PDFTextStripper__handleDirection = NULL;
-FFI_PLUGIN_EXPORT
-JniResult PDFTextStripper__handleDirection(jobject self_, jobject word) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_method(_c_PDFTextStripper, &_m_PDFTextStripper__handleDirection,
-              "handleDirection", "(Ljava/lang/String;)Ljava/lang/String;");
-  if (_m_PDFTextStripper__handleDirection == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  jobject _result = (*jniEnv)->CallObjectMethod(
-      jniEnv, self_, _m_PDFTextStripper__handleDirection, word);
-  return (JniResult){.result = {.l = to_global_ref(_result)},
-                     .exception = check_exception()};
-}
-
-jmethodID _m_PDFTextStripper__parseBidiFile = NULL;
-FFI_PLUGIN_EXPORT
-JniResult PDFTextStripper__parseBidiFile(jobject inputStream) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_static_method(_c_PDFTextStripper, &_m_PDFTextStripper__parseBidiFile,
-                     "parseBidiFile", "(Ljava/io/InputStream;)V");
-  if (_m_PDFTextStripper__parseBidiFile == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  (*jniEnv)->CallStaticVoidMethod(jniEnv, _c_PDFTextStripper,
-                                  _m_PDFTextStripper__parseBidiFile,
-                                  inputStream);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jmethodID _m_PDFTextStripper__createWord = NULL;
-FFI_PLUGIN_EXPORT
-JniResult PDFTextStripper__createWord(jobject self_,
-                                      jobject word,
-                                      jobject wordPositions) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_method(_c_PDFTextStripper, &_m_PDFTextStripper__createWord, "createWord",
-              "(Ljava/lang/String;Ljava/util/List;)Lorg/apache/pdfbox/text/"
-              "PDFTextStripper$WordWithTextPositions;");
-  if (_m_PDFTextStripper__createWord == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  jobject _result = (*jniEnv)->CallObjectMethod(
-      jniEnv, self_, _m_PDFTextStripper__createWord, word, wordPositions);
-  return (JniResult){.result = {.l = to_global_ref(_result)},
-                     .exception = check_exception()};
-}
-
-jmethodID _m_PDFTextStripper__normalizeWord = NULL;
-FFI_PLUGIN_EXPORT
-JniResult PDFTextStripper__normalizeWord(jobject self_, jobject word) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_method(_c_PDFTextStripper, &_m_PDFTextStripper__normalizeWord,
-              "normalizeWord", "(Ljava/lang/String;)Ljava/lang/String;");
-  if (_m_PDFTextStripper__normalizeWord == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  jobject _result = (*jniEnv)->CallObjectMethod(
-      jniEnv, self_, _m_PDFTextStripper__normalizeWord, word);
-  return (JniResult){.result = {.l = to_global_ref(_result)},
-                     .exception = check_exception()};
-}
-
-jmethodID _m_PDFTextStripper__normalizeAdd = NULL;
-FFI_PLUGIN_EXPORT
-JniResult PDFTextStripper__normalizeAdd(jobject self_,
-                                        jobject normalized,
-                                        jobject lineBuilder,
-                                        jobject wordPositions,
-                                        jobject item) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_method(
-      _c_PDFTextStripper, &_m_PDFTextStripper__normalizeAdd, "normalizeAdd",
-      "(Ljava/util/List;Ljava/lang/StringBuilder;Ljava/util/List;Lorg/apache/"
-      "pdfbox/text/PDFTextStripper$LineItem;)Ljava/lang/StringBuilder;");
-  if (_m_PDFTextStripper__normalizeAdd == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  jobject _result = (*jniEnv)->CallObjectMethod(
-      jniEnv, self_, _m_PDFTextStripper__normalizeAdd, normalized, lineBuilder,
-      wordPositions, item);
-  return (JniResult){.result = {.l = to_global_ref(_result)},
-                     .exception = check_exception()};
-}
-
-jfieldID _f_PDFTextStripper__defaultIndentThreshold = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDFTextStripper__defaultIndentThreshold() {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_static_field(_c_PDFTextStripper,
-                    &_f_PDFTextStripper__defaultIndentThreshold,
-                    "defaultIndentThreshold", "F");
-  float _result = (*jniEnv)->GetStaticFloatField(
-      jniEnv, _c_PDFTextStripper, _f_PDFTextStripper__defaultIndentThreshold);
-  return (JniResult){.result = {.f = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDFTextStripper__defaultIndentThreshold(float value) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_static_field(_c_PDFTextStripper,
-                    &_f_PDFTextStripper__defaultIndentThreshold,
-                    "defaultIndentThreshold", "F");
-  (*jniEnv)->SetStaticFloatField(jniEnv, _c_PDFTextStripper,
-                                 _f_PDFTextStripper__defaultIndentThreshold,
-                                 value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDFTextStripper__defaultDropThreshold = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDFTextStripper__defaultDropThreshold() {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_static_field(_c_PDFTextStripper,
-                    &_f_PDFTextStripper__defaultDropThreshold,
-                    "defaultDropThreshold", "F");
-  float _result = (*jniEnv)->GetStaticFloatField(
-      jniEnv, _c_PDFTextStripper, _f_PDFTextStripper__defaultDropThreshold);
-  return (JniResult){.result = {.f = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDFTextStripper__defaultDropThreshold(float value) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_static_field(_c_PDFTextStripper,
-                    &_f_PDFTextStripper__defaultDropThreshold,
-                    "defaultDropThreshold", "F");
-  (*jniEnv)->SetStaticFloatField(jniEnv, _c_PDFTextStripper,
-                                 _f_PDFTextStripper__defaultDropThreshold,
-                                 value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDFTextStripper__LOG = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDFTextStripper__LOG() {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_static_field(_c_PDFTextStripper, &_f_PDFTextStripper__LOG, "LOG",
-                    "Lorg/apache/commons/logging/Log;");
-  jobject _result = to_global_ref((*jniEnv)->GetStaticObjectField(
-      jniEnv, _c_PDFTextStripper, _f_PDFTextStripper__LOG));
-  return (JniResult){.result = {.l = _result}, .exception = check_exception()};
-}
-
 jfieldID _f_PDFTextStripper__LINE_SEPARATOR = NULL;
 FFI_PLUGIN_EXPORT
 JniResult get_PDFTextStripper__LINE_SEPARATOR(jobject self_) {
@@ -3724,665 +2780,6 @@
   return (JniResult){.result = {.l = _result}, .exception = check_exception()};
 }
 
-jfieldID _f_PDFTextStripper__lineSeparator = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDFTextStripper__lineSeparator(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__lineSeparator,
-             "lineSeparator", "Ljava/lang/String;");
-  jobject _result = to_global_ref((*jniEnv)->GetObjectField(
-      jniEnv, self_, _f_PDFTextStripper__lineSeparator));
-  return (JniResult){.result = {.l = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDFTextStripper__lineSeparator(jobject self_, jobject value) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__lineSeparator,
-             "lineSeparator", "Ljava/lang/String;");
-  (*jniEnv)->SetObjectField(jniEnv, self_, _f_PDFTextStripper__lineSeparator,
-                            value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDFTextStripper__wordSeparator = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDFTextStripper__wordSeparator(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__wordSeparator,
-             "wordSeparator", "Ljava/lang/String;");
-  jobject _result = to_global_ref((*jniEnv)->GetObjectField(
-      jniEnv, self_, _f_PDFTextStripper__wordSeparator));
-  return (JniResult){.result = {.l = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDFTextStripper__wordSeparator(jobject self_, jobject value) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__wordSeparator,
-             "wordSeparator", "Ljava/lang/String;");
-  (*jniEnv)->SetObjectField(jniEnv, self_, _f_PDFTextStripper__wordSeparator,
-                            value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDFTextStripper__paragraphStart = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDFTextStripper__paragraphStart(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__paragraphStart,
-             "paragraphStart", "Ljava/lang/String;");
-  jobject _result = to_global_ref((*jniEnv)->GetObjectField(
-      jniEnv, self_, _f_PDFTextStripper__paragraphStart));
-  return (JniResult){.result = {.l = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDFTextStripper__paragraphStart(jobject self_, jobject value) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__paragraphStart,
-             "paragraphStart", "Ljava/lang/String;");
-  (*jniEnv)->SetObjectField(jniEnv, self_, _f_PDFTextStripper__paragraphStart,
-                            value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDFTextStripper__paragraphEnd = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDFTextStripper__paragraphEnd(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__paragraphEnd,
-             "paragraphEnd", "Ljava/lang/String;");
-  jobject _result = to_global_ref((*jniEnv)->GetObjectField(
-      jniEnv, self_, _f_PDFTextStripper__paragraphEnd));
-  return (JniResult){.result = {.l = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDFTextStripper__paragraphEnd(jobject self_, jobject value) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__paragraphEnd,
-             "paragraphEnd", "Ljava/lang/String;");
-  (*jniEnv)->SetObjectField(jniEnv, self_, _f_PDFTextStripper__paragraphEnd,
-                            value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDFTextStripper__pageStart = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDFTextStripper__pageStart(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__pageStart, "pageStart",
-             "Ljava/lang/String;");
-  jobject _result = to_global_ref(
-      (*jniEnv)->GetObjectField(jniEnv, self_, _f_PDFTextStripper__pageStart));
-  return (JniResult){.result = {.l = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDFTextStripper__pageStart(jobject self_, jobject value) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__pageStart, "pageStart",
-             "Ljava/lang/String;");
-  (*jniEnv)->SetObjectField(jniEnv, self_, _f_PDFTextStripper__pageStart,
-                            value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDFTextStripper__pageEnd = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDFTextStripper__pageEnd(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__pageEnd, "pageEnd",
-             "Ljava/lang/String;");
-  jobject _result = to_global_ref(
-      (*jniEnv)->GetObjectField(jniEnv, self_, _f_PDFTextStripper__pageEnd));
-  return (JniResult){.result = {.l = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDFTextStripper__pageEnd(jobject self_, jobject value) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__pageEnd, "pageEnd",
-             "Ljava/lang/String;");
-  (*jniEnv)->SetObjectField(jniEnv, self_, _f_PDFTextStripper__pageEnd, value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDFTextStripper__articleStart = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDFTextStripper__articleStart(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__articleStart,
-             "articleStart", "Ljava/lang/String;");
-  jobject _result = to_global_ref((*jniEnv)->GetObjectField(
-      jniEnv, self_, _f_PDFTextStripper__articleStart));
-  return (JniResult){.result = {.l = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDFTextStripper__articleStart(jobject self_, jobject value) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__articleStart,
-             "articleStart", "Ljava/lang/String;");
-  (*jniEnv)->SetObjectField(jniEnv, self_, _f_PDFTextStripper__articleStart,
-                            value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDFTextStripper__articleEnd = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDFTextStripper__articleEnd(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__articleEnd, "articleEnd",
-             "Ljava/lang/String;");
-  jobject _result = to_global_ref(
-      (*jniEnv)->GetObjectField(jniEnv, self_, _f_PDFTextStripper__articleEnd));
-  return (JniResult){.result = {.l = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDFTextStripper__articleEnd(jobject self_, jobject value) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__articleEnd, "articleEnd",
-             "Ljava/lang/String;");
-  (*jniEnv)->SetObjectField(jniEnv, self_, _f_PDFTextStripper__articleEnd,
-                            value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDFTextStripper__currentPageNo = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDFTextStripper__currentPageNo(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__currentPageNo,
-             "currentPageNo", "I");
-  int32_t _result =
-      (*jniEnv)->GetIntField(jniEnv, self_, _f_PDFTextStripper__currentPageNo);
-  return (JniResult){.result = {.i = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDFTextStripper__currentPageNo(jobject self_, int32_t value) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__currentPageNo,
-             "currentPageNo", "I");
-  (*jniEnv)->SetIntField(jniEnv, self_, _f_PDFTextStripper__currentPageNo,
-                         value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDFTextStripper__startPage = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDFTextStripper__startPage(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__startPage, "startPage",
-             "I");
-  int32_t _result =
-      (*jniEnv)->GetIntField(jniEnv, self_, _f_PDFTextStripper__startPage);
-  return (JniResult){.result = {.i = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDFTextStripper__startPage(jobject self_, int32_t value) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__startPage, "startPage",
-             "I");
-  (*jniEnv)->SetIntField(jniEnv, self_, _f_PDFTextStripper__startPage, value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDFTextStripper__endPage = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDFTextStripper__endPage(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__endPage, "endPage", "I");
-  int32_t _result =
-      (*jniEnv)->GetIntField(jniEnv, self_, _f_PDFTextStripper__endPage);
-  return (JniResult){.result = {.i = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDFTextStripper__endPage(jobject self_, int32_t value) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__endPage, "endPage", "I");
-  (*jniEnv)->SetIntField(jniEnv, self_, _f_PDFTextStripper__endPage, value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDFTextStripper__startBookmark = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDFTextStripper__startBookmark(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__startBookmark,
-             "startBookmark",
-             "Lorg/apache/pdfbox/pdmodel/interactive/documentnavigation/"
-             "outline/PDOutlineItem;");
-  jobject _result = to_global_ref((*jniEnv)->GetObjectField(
-      jniEnv, self_, _f_PDFTextStripper__startBookmark));
-  return (JniResult){.result = {.l = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDFTextStripper__startBookmark(jobject self_, jobject value) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__startBookmark,
-             "startBookmark",
-             "Lorg/apache/pdfbox/pdmodel/interactive/documentnavigation/"
-             "outline/PDOutlineItem;");
-  (*jniEnv)->SetObjectField(jniEnv, self_, _f_PDFTextStripper__startBookmark,
-                            value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDFTextStripper__startBookmarkPageNumber = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDFTextStripper__startBookmarkPageNumber(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__startBookmarkPageNumber,
-             "startBookmarkPageNumber", "I");
-  int32_t _result = (*jniEnv)->GetIntField(
-      jniEnv, self_, _f_PDFTextStripper__startBookmarkPageNumber);
-  return (JniResult){.result = {.i = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDFTextStripper__startBookmarkPageNumber(jobject self_,
-                                                       int32_t value) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__startBookmarkPageNumber,
-             "startBookmarkPageNumber", "I");
-  (*jniEnv)->SetIntField(jniEnv, self_,
-                         _f_PDFTextStripper__startBookmarkPageNumber, value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDFTextStripper__endBookmarkPageNumber = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDFTextStripper__endBookmarkPageNumber(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__endBookmarkPageNumber,
-             "endBookmarkPageNumber", "I");
-  int32_t _result = (*jniEnv)->GetIntField(
-      jniEnv, self_, _f_PDFTextStripper__endBookmarkPageNumber);
-  return (JniResult){.result = {.i = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDFTextStripper__endBookmarkPageNumber(jobject self_,
-                                                     int32_t value) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__endBookmarkPageNumber,
-             "endBookmarkPageNumber", "I");
-  (*jniEnv)->SetIntField(jniEnv, self_,
-                         _f_PDFTextStripper__endBookmarkPageNumber, value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDFTextStripper__endBookmark = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDFTextStripper__endBookmark(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__endBookmark,
-             "endBookmark",
-             "Lorg/apache/pdfbox/pdmodel/interactive/documentnavigation/"
-             "outline/PDOutlineItem;");
-  jobject _result = to_global_ref((*jniEnv)->GetObjectField(
-      jniEnv, self_, _f_PDFTextStripper__endBookmark));
-  return (JniResult){.result = {.l = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDFTextStripper__endBookmark(jobject self_, jobject value) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__endBookmark,
-             "endBookmark",
-             "Lorg/apache/pdfbox/pdmodel/interactive/documentnavigation/"
-             "outline/PDOutlineItem;");
-  (*jniEnv)->SetObjectField(jniEnv, self_, _f_PDFTextStripper__endBookmark,
-                            value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDFTextStripper__suppressDuplicateOverlappingText = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDFTextStripper__suppressDuplicateOverlappingText(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper,
-             &_f_PDFTextStripper__suppressDuplicateOverlappingText,
-             "suppressDuplicateOverlappingText", "Z");
-  uint8_t _result = (*jniEnv)->GetBooleanField(
-      jniEnv, self_, _f_PDFTextStripper__suppressDuplicateOverlappingText);
-  return (JniResult){.result = {.z = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDFTextStripper__suppressDuplicateOverlappingText(jobject self_,
-                                                                uint8_t value) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper,
-             &_f_PDFTextStripper__suppressDuplicateOverlappingText,
-             "suppressDuplicateOverlappingText", "Z");
-  (*jniEnv)->SetBooleanField(
-      jniEnv, self_, _f_PDFTextStripper__suppressDuplicateOverlappingText,
-      value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDFTextStripper__shouldSeparateByBeads = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDFTextStripper__shouldSeparateByBeads(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__shouldSeparateByBeads,
-             "shouldSeparateByBeads", "Z");
-  uint8_t _result = (*jniEnv)->GetBooleanField(
-      jniEnv, self_, _f_PDFTextStripper__shouldSeparateByBeads);
-  return (JniResult){.result = {.z = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDFTextStripper__shouldSeparateByBeads(jobject self_,
-                                                     uint8_t value) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__shouldSeparateByBeads,
-             "shouldSeparateByBeads", "Z");
-  (*jniEnv)->SetBooleanField(jniEnv, self_,
-                             _f_PDFTextStripper__shouldSeparateByBeads, value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDFTextStripper__sortByPosition = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDFTextStripper__sortByPosition(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__sortByPosition,
-             "sortByPosition", "Z");
-  uint8_t _result = (*jniEnv)->GetBooleanField(
-      jniEnv, self_, _f_PDFTextStripper__sortByPosition);
-  return (JniResult){.result = {.z = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDFTextStripper__sortByPosition(jobject self_, uint8_t value) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__sortByPosition,
-             "sortByPosition", "Z");
-  (*jniEnv)->SetBooleanField(jniEnv, self_, _f_PDFTextStripper__sortByPosition,
-                             value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDFTextStripper__addMoreFormatting = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDFTextStripper__addMoreFormatting(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__addMoreFormatting,
-             "addMoreFormatting", "Z");
-  uint8_t _result = (*jniEnv)->GetBooleanField(
-      jniEnv, self_, _f_PDFTextStripper__addMoreFormatting);
-  return (JniResult){.result = {.z = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDFTextStripper__addMoreFormatting(jobject self_, uint8_t value) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__addMoreFormatting,
-             "addMoreFormatting", "Z");
-  (*jniEnv)->SetBooleanField(jniEnv, self_,
-                             _f_PDFTextStripper__addMoreFormatting, value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDFTextStripper__indentThreshold = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDFTextStripper__indentThreshold(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__indentThreshold,
-             "indentThreshold", "F");
-  float _result = (*jniEnv)->GetFloatField(jniEnv, self_,
-                                           _f_PDFTextStripper__indentThreshold);
-  return (JniResult){.result = {.f = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDFTextStripper__indentThreshold(jobject self_, float value) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__indentThreshold,
-             "indentThreshold", "F");
-  (*jniEnv)->SetFloatField(jniEnv, self_, _f_PDFTextStripper__indentThreshold,
-                           value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDFTextStripper__dropThreshold = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDFTextStripper__dropThreshold(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__dropThreshold,
-             "dropThreshold", "F");
-  float _result = (*jniEnv)->GetFloatField(jniEnv, self_,
-                                           _f_PDFTextStripper__dropThreshold);
-  return (JniResult){.result = {.f = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDFTextStripper__dropThreshold(jobject self_, float value) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__dropThreshold,
-             "dropThreshold", "F");
-  (*jniEnv)->SetFloatField(jniEnv, self_, _f_PDFTextStripper__dropThreshold,
-                           value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDFTextStripper__spacingTolerance = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDFTextStripper__spacingTolerance(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__spacingTolerance,
-             "spacingTolerance", "F");
-  float _result = (*jniEnv)->GetFloatField(
-      jniEnv, self_, _f_PDFTextStripper__spacingTolerance);
-  return (JniResult){.result = {.f = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDFTextStripper__spacingTolerance(jobject self_, float value) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__spacingTolerance,
-             "spacingTolerance", "F");
-  (*jniEnv)->SetFloatField(jniEnv, self_, _f_PDFTextStripper__spacingTolerance,
-                           value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDFTextStripper__averageCharTolerance = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDFTextStripper__averageCharTolerance(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__averageCharTolerance,
-             "averageCharTolerance", "F");
-  float _result = (*jniEnv)->GetFloatField(
-      jniEnv, self_, _f_PDFTextStripper__averageCharTolerance);
-  return (JniResult){.result = {.f = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDFTextStripper__averageCharTolerance(jobject self_,
-                                                    float value) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__averageCharTolerance,
-             "averageCharTolerance", "F");
-  (*jniEnv)->SetFloatField(jniEnv, self_,
-                           _f_PDFTextStripper__averageCharTolerance, value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDFTextStripper__beadRectangles = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDFTextStripper__beadRectangles(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__beadRectangles,
-             "beadRectangles", "Ljava/util/List;");
-  jobject _result = to_global_ref((*jniEnv)->GetObjectField(
-      jniEnv, self_, _f_PDFTextStripper__beadRectangles));
-  return (JniResult){.result = {.l = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDFTextStripper__beadRectangles(jobject self_, jobject value) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__beadRectangles,
-             "beadRectangles", "Ljava/util/List;");
-  (*jniEnv)->SetObjectField(jniEnv, self_, _f_PDFTextStripper__beadRectangles,
-                            value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
 jfieldID _f_PDFTextStripper__charactersByArticle = NULL;
 FFI_PLUGIN_EXPORT
 JniResult get_PDFTextStripper__charactersByArticle(jobject self_) {
@@ -4411,34 +2808,6 @@
   return (JniResult){.result = {.j = 0}, .exception = check_exception()};
 }
 
-jfieldID _f_PDFTextStripper__characterListMapping = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDFTextStripper__characterListMapping(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__characterListMapping,
-             "characterListMapping", "Ljava/util/Map;");
-  jobject _result = to_global_ref((*jniEnv)->GetObjectField(
-      jniEnv, self_, _f_PDFTextStripper__characterListMapping));
-  return (JniResult){.result = {.l = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDFTextStripper__characterListMapping(jobject self_,
-                                                    jobject value) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__characterListMapping,
-             "characterListMapping", "Ljava/util/Map;");
-  (*jniEnv)->SetObjectField(jniEnv, self_,
-                            _f_PDFTextStripper__characterListMapping, value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
 jfieldID _f_PDFTextStripper__document = NULL;
 FFI_PLUGIN_EXPORT
 JniResult get_PDFTextStripper__document(jobject self_) {
@@ -4490,100 +2859,3 @@
   (*jniEnv)->SetObjectField(jniEnv, self_, _f_PDFTextStripper__output, value);
   return (JniResult){.result = {.j = 0}, .exception = check_exception()};
 }
-
-jfieldID _f_PDFTextStripper__inParagraph = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDFTextStripper__inParagraph(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__inParagraph,
-             "inParagraph", "Z");
-  uint8_t _result = (*jniEnv)->GetBooleanField(jniEnv, self_,
-                                               _f_PDFTextStripper__inParagraph);
-  return (JniResult){.result = {.z = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDFTextStripper__inParagraph(jobject self_, uint8_t value) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__inParagraph,
-             "inParagraph", "Z");
-  (*jniEnv)->SetBooleanField(jniEnv, self_, _f_PDFTextStripper__inParagraph,
-                             value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDFTextStripper__LIST_ITEM_EXPRESSIONS = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDFTextStripper__LIST_ITEM_EXPRESSIONS() {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_static_field(_c_PDFTextStripper,
-                    &_f_PDFTextStripper__LIST_ITEM_EXPRESSIONS,
-                    "LIST_ITEM_EXPRESSIONS", "[Ljava/lang/String;");
-  jobject _result = to_global_ref((*jniEnv)->GetStaticObjectField(
-      jniEnv, _c_PDFTextStripper, _f_PDFTextStripper__LIST_ITEM_EXPRESSIONS));
-  return (JniResult){.result = {.l = _result}, .exception = check_exception()};
-}
-
-jfieldID _f_PDFTextStripper__listOfPatterns = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDFTextStripper__listOfPatterns(jobject self_) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__listOfPatterns,
-             "listOfPatterns", "Ljava/util/List;");
-  jobject _result = to_global_ref((*jniEnv)->GetObjectField(
-      jniEnv, self_, _f_PDFTextStripper__listOfPatterns));
-  return (JniResult){.result = {.l = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDFTextStripper__listOfPatterns(jobject self_, jobject value) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_field(_c_PDFTextStripper, &_f_PDFTextStripper__listOfPatterns,
-             "listOfPatterns", "Ljava/util/List;");
-  (*jniEnv)->SetObjectField(jniEnv, self_, _f_PDFTextStripper__listOfPatterns,
-                            value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
-
-jfieldID _f_PDFTextStripper__MIRRORING_CHAR_MAP = NULL;
-FFI_PLUGIN_EXPORT
-JniResult get_PDFTextStripper__MIRRORING_CHAR_MAP() {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_static_field(_c_PDFTextStripper, &_f_PDFTextStripper__MIRRORING_CHAR_MAP,
-                    "MIRRORING_CHAR_MAP", "Ljava/util/Map;");
-  jobject _result = to_global_ref((*jniEnv)->GetStaticObjectField(
-      jniEnv, _c_PDFTextStripper, _f_PDFTextStripper__MIRRORING_CHAR_MAP));
-  return (JniResult){.result = {.l = _result}, .exception = check_exception()};
-}
-
-FFI_PLUGIN_EXPORT
-JniResult set_PDFTextStripper__MIRRORING_CHAR_MAP(jobject value) {
-  load_env();
-  load_class_gr(&_c_PDFTextStripper, "org/apache/pdfbox/text/PDFTextStripper");
-  if (_c_PDFTextStripper == NULL)
-    return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-  load_static_field(_c_PDFTextStripper, &_f_PDFTextStripper__MIRRORING_CHAR_MAP,
-                    "MIRRORING_CHAR_MAP", "Ljava/util/Map;");
-  (*jniEnv)->SetStaticObjectField(jniEnv, _c_PDFTextStripper,
-                                  _f_PDFTextStripper__MIRRORING_CHAR_MAP,
-                                  value);
-  return (JniResult){.result = {.j = 0}, .exception = check_exception()};
-}
diff --git a/pkgs/jnigen/java/src/main/java/com/github/dart_lang/jnigen/apisummarizer/disasm/AsmClassVisitor.java b/pkgs/jnigen/java/src/main/java/com/github/dart_lang/jnigen/apisummarizer/disasm/AsmClassVisitor.java
index 187afc1..c822342 100644
--- a/pkgs/jnigen/java/src/main/java/com/github/dart_lang/jnigen/apisummarizer/disasm/AsmClassVisitor.java
+++ b/pkgs/jnigen/java/src/main/java/com/github/dart_lang/jnigen/apisummarizer/disasm/AsmClassVisitor.java
@@ -63,7 +63,7 @@
   @Override
   public FieldVisitor visitField(
       int access, String name, String descriptor, String signature, Object value) {
-    if (name.contains("$") || isPrivate(access)) {
+    if (name.contains("$")) {
       return null;
     }
     var field = new Field();
@@ -79,7 +79,7 @@
   public MethodVisitor visitMethod(
       int access, String name, String descriptor, String signature, String[] exceptions) {
     var method = new Method();
-    if (name.contains("$") || isPrivate(access)) {
+    if (name.contains("$")) {
       return null;
     }
     method.name = name;
diff --git a/pkgs/jnigen/java/src/test/resources/com/example/Example.java b/pkgs/jnigen/java/src/test/resources/com/example/Example.java
index 98896ac..b5856a2 100644
--- a/pkgs/jnigen/java/src/test/resources/com/example/Example.java
+++ b/pkgs/jnigen/java/src/test/resources/com/example/Example.java
@@ -5,28 +5,34 @@
 package com.example;
 
 public class Example {
-  static final boolean staticFinalField = true;
+  public static final boolean staticFinalField = true;
 
-  Example(int instanceField) {
+  public Example(int instanceField) {
     this.instanceField = instanceField;
   }
 
-  static String staticField = "hello";
+  public static String staticField = "hello";
 
-  static String getStaticField() {
+  public static String getStaticField() {
     return staticField;
   }
 
-  int instanceField;
+  public int instanceField;
 
-  int getInstanceField() {
+  public int getInstanceField() {
     return instanceField;
   }
 
-  public static class Aux extends Example {
-    static int nothing = 0;
+  protected int overrideableMethod(int x, int y) {}
 
-    static Example getAnExample() {
+  int defaultAccessNotVisible();
+
+  private int privateAccessNotVisible();
+
+  public static class Aux extends Example {
+    public static int nothing = 0;
+
+    public static Example getAnExample() {
       return new Example();
     }
   }
diff --git a/pkgs/jnigen/java/src/test/resources/exampleClassSummary.json b/pkgs/jnigen/java/src/test/resources/exampleClassSummary.json
index 81fabd7..90a08e4 100644
--- a/pkgs/jnigen/java/src/test/resources/exampleClassSummary.json
+++ b/pkgs/jnigen/java/src/test/resources/exampleClassSummary.json
@@ -5,6 +5,7 @@
   "binaryName" : "com.example.Example",
   "packageName" : "com.example",
   "methods" : [ {
+    "modifiers" : [ "public" ],
     "name" : "<init>",
     "params" : [ {
       "name" : "instanceField",
@@ -24,7 +25,7 @@
       }
     }
   }, {
-    "modifiers" : [ "static" ],
+    "modifiers" : [ "static", "public" ],
     "name" : "getStaticField",
     "returnType" : {
       "shorthand" : "java.lang.String",
@@ -35,6 +36,7 @@
       }
     }
   }, {
+    "modifiers" : [ "public" ],
     "name" : "getInstanceField",
     "returnType" : {
       "shorthand" : "int",
@@ -43,9 +45,57 @@
         "name" : "int"
       }
     }
+  }, {
+    "modifiers" : [ "protected" ],
+    "name" : "overrideableMethod",
+    "params" : [ {
+      "name" : "x",
+      "type" : {
+        "shorthand" : "int",
+        "kind" : "PRIMITIVE",
+        "type" : {
+          "name" : "int"
+        }
+      }
+    }, {
+      "name" : "y",
+      "type" : {
+        "shorthand" : "int",
+        "kind" : "PRIMITIVE",
+        "type" : {
+          "name" : "int"
+        }
+      }
+    } ],
+    "returnType" : {
+      "shorthand" : "int",
+      "kind" : "PRIMITIVE",
+      "type" : {
+        "name" : "int"
+      }
+    }
+  }, {
+    "name" : "defaultAccessNotVisible",
+    "returnType" : {
+      "shorthand" : "int",
+      "kind" : "PRIMITIVE",
+      "type" : {
+        "name" : "int"
+      }
+    }
+  }, {
+    "modifiers" : [ "private" ],
+    "name" : "privateAccessNotVisible",
+    "returnType" : {
+      "shorthand" : "int",
+      "kind" : "PRIMITIVE",
+      "type" : {
+        "name" : "int"
+      }
+    }
   } ],
   "fields" : [ {
-    "modifiers" : [ "static", "final" ],
+    "modifiers" : [ "static", "public", "final" ],
     "name" : "staticFinalField",
     "type" : {
       "shorthand" : "boolean",
@@ -56,7 +106,7 @@
     },
     "defaultValue" : true
   }, {
-    "modifiers" : [ "static" ],
+    "modifiers" : [ "static", "public" ],
     "name" : "staticField",
     "type" : {
       "shorthand" : "java.lang.String",
@@ -67,6 +117,7 @@
       }
     }
   }, {
+    "modifiers" : [ "public" ],
     "name" : "instanceField",
     "type" : {
       "shorthand" : "int",
@@ -104,7 +155,7 @@
       }
     }
   }, {
-    "modifiers" : [ "static" ],
+    "modifiers" : [ "static", "public" ],
     "name" : "getAnExample",
     "returnType" : {
       "shorthand" : "com.example.Example",
@@ -116,7 +167,7 @@
     }
   } ],
   "fields" : [ {
-    "modifiers" : [ "static" ],
+    "modifiers" : [ "static", "public" ],
     "name" : "nothing",
     "type" : {
       "shorthand" : "int",
diff --git a/pkgs/jnigen/lib/src/bindings/preprocessor.dart b/pkgs/jnigen/lib/src/bindings/preprocessor.dart
index 9635828..0a451a5 100644
--- a/pkgs/jnigen/lib/src/bindings/preprocessor.dart
+++ b/pkgs/jnigen/lib/src/bindings/preprocessor.dart
@@ -89,12 +89,18 @@
     log.fine('preprocessed ${decl.binaryName}');
   }
 
+  static bool _isPublicOrProtected(Set<String> modifiers) =>
+      modifiers.contains("public") || modifiers.contains("protected");
+
   static bool _isFieldIncluded(ClassDecl decl, Field field, Config config) =>
+      _isPublicOrProtected(field.modifiers) &&
       !field.name.startsWith('_') &&
       config.exclude?.fields?.included(decl, field) != false;
   static bool _isMethodIncluded(ClassDecl decl, Method method, Config config) =>
+      _isPublicOrProtected(method.modifiers) &&
       !method.name.startsWith('_') &&
       config.exclude?.methods?.included(decl, method) != false;
   static bool _isClassIncluded(ClassDecl decl, Config config) =>
+      _isPublicOrProtected(decl.modifiers) &&
       config.exclude?.classes?.included(decl) != false;
 }
diff --git a/pkgs/jnigen/test/jackson_core_test/third_party/lib/com/fasterxml/jackson/core/JsonFactory.dart b/pkgs/jnigen/test/jackson_core_test/third_party/lib/com/fasterxml/jackson/core/JsonFactory.dart
index ca72d0c..0d8c37b 100644
--- a/pkgs/jnigen/test/jackson_core_test/third_party/lib/com/fasterxml/jackson/core/JsonFactory.dart
+++ b/pkgs/jnigen/test/jackson_core_test/third_party/lib/com/fasterxml/jackson/core/JsonFactory.dart
@@ -59,9 +59,6 @@
       jniAccessors.getClassOf("com/fasterxml/jackson/core/JsonFactory");
   JsonFactory.fromRef(jni.JObject ref) : super.fromRef(ref);
 
-  /// from: private static final long serialVersionUID
-  static const serialVersionUID = 2;
-
   /// from: static public final java.lang.String FORMAT_NAME_JSON
   ///
   /// Name used to identify JSON format
@@ -1498,15 +1495,6 @@
   static int collectDefaults() => jniAccessors.callStaticMethodWithArgs(
       _classRef, _id_collectDefaults, jni.JniType.intType, []).integer;
 
-  static final _id_ctor =
-      jniAccessors.getMethodIDOf(_classRef, "<init>", "(Z)V");
-
-  /// from: private void <init>(boolean defaultState)
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  JsonFactory_Feature(bool defaultState)
-      : super.fromRef(jniAccessors
-            .newObjectWithArgs(_classRef, _id_ctor, [defaultState]).object);
-
   static final _id_enabledByDefault =
       jniAccessors.getMethodIDOf(_classRef, "enabledByDefault", "()Z");
 
diff --git a/pkgs/jnigen/test/jackson_core_test/third_party/lib/com/fasterxml/jackson/core/JsonParser.dart b/pkgs/jnigen/test/jackson_core_test/third_party/lib/com/fasterxml/jackson/core/JsonParser.dart
index 1f8f08b..988100c 100644
--- a/pkgs/jnigen/test/jackson_core_test/third_party/lib/com/fasterxml/jackson/core/JsonParser.dart
+++ b/pkgs/jnigen/test/jackson_core_test/third_party/lib/com/fasterxml/jackson/core/JsonParser.dart
@@ -46,18 +46,6 @@
       jniAccessors.getClassOf("com/fasterxml/jackson/core/JsonParser");
   JsonParser.fromRef(jni.JObject ref) : super.fromRef(ref);
 
-  /// from: private static final int MIN_BYTE_I
-  static const MIN_BYTE_I = -128;
-
-  /// from: private static final int MAX_BYTE_I
-  static const MAX_BYTE_I = 255;
-
-  /// from: private static final int MIN_SHORT_I
-  static const MIN_SHORT_I = -32768;
-
-  /// from: private static final int MAX_SHORT_I
-  static const MAX_SHORT_I = 32767;
-
   static final _id_DEFAULT_READ_CAPABILITIES = jniAccessors.getStaticFieldIDOf(
       _classRef,
       "DEFAULT_READ_CAPABILITIES",
@@ -2114,15 +2102,6 @@
   static int collectDefaults() => jniAccessors.callStaticMethodWithArgs(
       _classRef, _id_collectDefaults, jni.JniType.intType, []).integer;
 
-  static final _id_ctor =
-      jniAccessors.getMethodIDOf(_classRef, "<init>", "(Z)V");
-
-  /// from: private void <init>(boolean defaultState)
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  JsonParser_Feature(bool defaultState)
-      : super.fromRef(jniAccessors
-            .newObjectWithArgs(_classRef, _id_ctor, [defaultState]).object);
-
   static final _id_enabledByDefault =
       jniAccessors.getMethodIDOf(_classRef, "enabledByDefault", "()Z");
 
@@ -2176,13 +2155,4 @@
           _id_valueOf,
           jni.JniType.objectType,
           [name.reference]).object);
-
-  static final _id_ctor =
-      jniAccessors.getMethodIDOf(_classRef, "<init>", "()V");
-
-  /// from: private void <init>()
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  JsonParser_NumberType()
-      : super.fromRef(
-            jniAccessors.newObjectWithArgs(_classRef, _id_ctor, []).object);
 }
diff --git a/pkgs/jnigen/test/jackson_core_test/third_party/lib/com/fasterxml/jackson/core/JsonToken.dart b/pkgs/jnigen/test/jackson_core_test/third_party/lib/com/fasterxml/jackson/core/JsonToken.dart
index e7651e8..280ea6b 100644
--- a/pkgs/jnigen/test/jackson_core_test/third_party/lib/com/fasterxml/jackson/core/JsonToken.dart
+++ b/pkgs/jnigen/test/jackson_core_test/third_party/lib/com/fasterxml/jackson/core/JsonToken.dart
@@ -61,19 +61,6 @@
       JsonToken.fromRef(jniAccessors.callStaticMethodWithArgs(_classRef,
           _id_valueOf, jni.JniType.objectType, [name.reference]).object);
 
-  static final _id_ctor =
-      jniAccessors.getMethodIDOf(_classRef, "<init>", "(Ljava/lang/String;I)V");
-
-  /// from: private void <init>(java.lang.String token, int id)
-  /// The returned object must be deleted after use, by calling the `delete` method.
-  ///
-  /// @param token representation for this token, if there is a
-  ///   single static representation; null otherwise
-  ///@param id Numeric id from JsonTokenId
-  JsonToken(jni.JniString token, int id)
-      : super.fromRef(jniAccessors.newObjectWithArgs(
-            _classRef, _id_ctor, [token.reference, id]).object);
-
   static final _id_id = jniAccessors.getMethodIDOf(_classRef, "id", "()I");
 
   /// from: public final int id()
diff --git a/pkgs/jnigen/tool/pr_checks.dart b/pkgs/jnigen/tool/pr_checks.dart
index f03f318..3e983c2 100644
--- a/pkgs/jnigen/tool/pr_checks.dart
+++ b/pkgs/jnigen/tool/pr_checks.dart
@@ -76,11 +76,17 @@
     ..chainCommand("dart", ["test", "-j", "1"]);
   unawaited(jniAnalyze.run().then((f) => jniTest.run()));
 
-  final javaFiles = Directory.fromUri(jnigenPath.resolve("java/"))
-      .listSync(recursive: true)
-      .where((file) => file.path.endsWith(".java"))
-      .map((file) => file.path)
-      .toList();
+  List<String> getJavaFiles(String relativePath) =>
+      Directory.fromUri(jnigenPath.resolve(relativePath))
+          .listSync(recursive: true)
+          .where((file) => file.path.endsWith(".java"))
+          .map((file) => file.path)
+          .toList();
+
+  final javaFiles = getJavaFiles("java/") +
+      getJavaFiles("test/simple_package_test") +
+      getJavaFiles("example/in_app_java") +
+      getJavaFiles("example/notification_plugin");
 
   final checkJavaFormat = Runner("Check java format", jnigenPath)
     ..chainCommand(