summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-11-02 19:15:50 +0800
committerSebastian Rasmussen <sebras@gmail.com>2016-11-03 01:23:41 +0800
commit9e2a8b67d21666de1979b30fbda5750d5402d000 (patch)
treecead7bcaad2c08fd1b9a376e7a6839f69f589c58 /platform
parentafc21e2a22273d337a78ff624e3f3f33144045e6 (diff)
downloadmupdf-9e2a8b67d21666de1979b30fbda5750d5402d000.tar.xz
jni: Make it easy to use stext without options.
Diffstat (limited to 'platform')
-rw-r--r--platform/java/src/com/artifex/mupdf/fitz/DisplayList.java5
-rw-r--r--platform/java/src/com/artifex/mupdf/fitz/Page.java4
2 files changed, 9 insertions, 0 deletions
diff --git a/platform/java/src/com/artifex/mupdf/fitz/DisplayList.java b/platform/java/src/com/artifex/mupdf/fitz/DisplayList.java
index be1a4b1f..60639ba7 100644
--- a/platform/java/src/com/artifex/mupdf/fitz/DisplayList.java
+++ b/platform/java/src/com/artifex/mupdf/fitz/DisplayList.java
@@ -23,6 +23,11 @@ public class DisplayList
public native Pixmap toPixmap(Matrix ctm, ColorSpace colorspace, boolean alpha);
public native StructuredText toStructuredText(String options);
+
+ public StructuredText toStructuredText() {
+ return toStructuredText(null);
+ }
+
public native Rect[] search(String needle);
public native void run(Device dev, Matrix ctm, Rect scissor, Cookie cookie);
diff --git a/platform/java/src/com/artifex/mupdf/fitz/Page.java b/platform/java/src/com/artifex/mupdf/fitz/Page.java
index 396f55d9..e86209d6 100644
--- a/platform/java/src/com/artifex/mupdf/fitz/Page.java
+++ b/platform/java/src/com/artifex/mupdf/fitz/Page.java
@@ -35,6 +35,10 @@ public class Page
public native DisplayList toDisplayList(boolean no_annotations);
public native StructuredText toStructuredText(String options);
+ public StructuredText toStructuredText() {
+ return toStructuredText(null);
+ }
+
public native Rect[] search(String needle);
public native byte[] textAsHtml();