summaryrefslogtreecommitdiff
path: root/platform/java/src/com/artifex
diff options
context:
space:
mode:
Diffstat (limited to 'platform/java/src/com/artifex')
-rw-r--r--platform/java/src/com/artifex/mupdf/fitz/Page.java5
-rw-r--r--platform/java/src/com/artifex/mupdf/fitz/Separations.java27
2 files changed, 28 insertions, 4 deletions
diff --git a/platform/java/src/com/artifex/mupdf/fitz/Page.java b/platform/java/src/com/artifex/mupdf/fitz/Page.java
index 60241355..5475e044 100644
--- a/platform/java/src/com/artifex/mupdf/fitz/Page.java
+++ b/platform/java/src/com/artifex/mupdf/fitz/Page.java
@@ -43,8 +43,5 @@ public class Page
public native byte[] textAsHtml();
- public native int countSeparations();
- public native Separation getSeparation(int index);
- public native void enableSeparation(int index, boolean enabled);
-
+ public native Separations getSeparations();
}
diff --git a/platform/java/src/com/artifex/mupdf/fitz/Separations.java b/platform/java/src/com/artifex/mupdf/fitz/Separations.java
new file mode 100644
index 00000000..6b86f3a4
--- /dev/null
+++ b/platform/java/src/com/artifex/mupdf/fitz/Separations.java
@@ -0,0 +1,27 @@
+package com.artifex.mupdf.fitz;
+
+public class Separations
+{
+ private long pointer;
+
+ protected native void finalize();
+
+ public void destroy() {
+ finalize();
+ pointer = 0;
+ }
+
+ protected Separations(long p) {
+ pointer = p;
+ }
+
+ public native int getNumberOfSeparations();
+
+ public native Separation getSeparation(int separation);
+
+ public native boolean areSeparationsControllable();
+
+ public native boolean disableSeparation(int separation, boolean disable);
+
+ public native boolean isSeparationDisabled(int separation);
+}