summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Ross-Perry <fred.ross-perry@artifex.com>2016-10-28 14:41:09 -0700
committerFred Ross-Perry <fred.ross-perry@artifex.com>2016-11-15 12:31:08 -0800
commit8bbd13958f33e7786bbdb2d001d3348d8b49e8b8 (patch)
tree254b53c204e87ba801a5a22f44dc887e62bbcfb5
parent3416574cc5b1469d79b69da1f53ce686ad78b62c (diff)
downloadmupdf-8bbd13958f33e7786bbdb2d001d3348d8b49e8b8.tar.xz
adapt to api change for toStructuredText.
No arguments are necessary.
-rw-r--r--platform/android/example/mupdf/src/main/java/com/artifex/mupdf/android/DocPageView.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/platform/android/example/mupdf/src/main/java/com/artifex/mupdf/android/DocPageView.java b/platform/android/example/mupdf/src/main/java/com/artifex/mupdf/android/DocPageView.java
index 60611b2a..a726d2a3 100644
--- a/platform/android/example/mupdf/src/main/java/com/artifex/mupdf/android/DocPageView.java
+++ b/platform/android/example/mupdf/src/main/java/com/artifex/mupdf/android/DocPageView.java
@@ -447,8 +447,7 @@ public class DocPageView extends View implements Callback
mSelection = new ArrayList<>();
// get structured text and the block structure
- int options = 0; // what should these be?
- StructuredText structuredText = getPage().toStructuredText(options);
+ StructuredText structuredText = getPage().toStructuredText();
StructuredText.TextBlock textBlocks[] = structuredText.getBlocks();
for (StructuredText.TextBlock block : textBlocks)
@@ -597,8 +596,7 @@ public class DocPageView extends View implements Callback
Point pPage = screenToPage(p.x, p.y);
// get structured text and the block structure
- int options = 0; // what should these be?
- StructuredText structuredText = getPage().toStructuredText(options);
+ StructuredText structuredText = getPage().toStructuredText();
StructuredText.TextBlock textBlocks[] = structuredText.getBlocks();
StructuredText.TextBlock block = blockContainingPoint(textBlocks, pPage);