summaryrefslogtreecommitdiff
path: root/platform/android
diff options
context:
space:
mode:
authorfred ross-perry <fredross-perry@Fred-Ross-Perrys-Computer.local>2016-09-13 08:11:07 -0700
committerfred ross-perry <fredross-perry@Fred-Ross-Perrys-Computer.local>2016-09-14 09:10:04 -0700
commit71ecb46b3e69bf32314f120503461deeadd73ab6 (patch)
treeea0a370838b3115271613952b6911131e0690bbe /platform/android
parent2369a34a21788e3d330d329ca077f7cbaa4571e5 (diff)
downloadmupdf-71ecb46b3e69bf32314f120503461deeadd73ab6.tar.xz
Android example: add options argument in calls to Page.toStructuredText
Diffstat (limited to 'platform/android')
-rw-r--r--[-rwxr-xr-x]platform/android/example/mupdf/src/main/java/com/artifex/mupdf/android/DocPageView.java6
1 files changed, 4 insertions, 2 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 f722da52..e862d87a 100755..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
@@ -437,7 +437,8 @@ public class DocPageView extends View implements Callback
mSelection = new ArrayList<>();
// get structured text and the block structure
- StructuredText structuredText = getPage().toStructuredText();
+ int options = 0; // what should these be?
+ StructuredText structuredText = getPage().toStructuredText(options);
StructuredText.TextBlock textBlocks[] = structuredText.getBlocks();
for (StructuredText.TextBlock block : textBlocks)
@@ -586,7 +587,8 @@ public class DocPageView extends View implements Callback
Point pPage = screenToPage(p.x, p.y);
// get structured text and the block structure
- StructuredText structuredText = getPage().toStructuredText();
+ int options = 0; // what should these be?
+ StructuredText structuredText = getPage().toStructuredText(options);
StructuredText.TextBlock textBlocks[] = structuredText.getBlocks();
StructuredText.TextBlock block = blockContainingPoint(textBlocks, pPage);