How to search and find text occurences in a PDF? - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: How to search and find text occurences in a PDF?

How to search and find text occurences in a PDF? 2 years 9 months ago #10238

  • micrad
  • micrad's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
I am having an instance of PDFReader in my app. I want to display an EditText next to it, with a "Previous match" and "Next match", so the user can navigate from one math to another.

How can I do that?
Can someone point me to an example or tutorial?

Best regards,
Michael

Please Log in or Create an account to join the conversation.

How to search and find text occurences in a PDF? 2 years 9 months ago #10247

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Karma: 17
  • Thank you received: 65
Hi,
i suggest you to check reader.xml of PDFReader layout folder.

These are the components used in the demo project to create the search box
<LinearLayout
android:id="@+id/bar_find"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentTop="false"
android:layout_centerInParent="false" >

<EditText
android:id="@+id/txt_find"
android:layout_width="150dp"
android:layout_height="40dp"
android:ems="10"
android:text="the" />

<Button
android:id="@+id/btn_prev"
style="?android:attr/buttonStyleSmall"
android:layout_width="40dp"
android:layout_height="wrap_content"
android:text="&lt;" />

<Button
android:id="@+id/btn_next"
style="?android:attr/buttonStyleSmall"
android:layout_width="40dp"
android:layout_height="wrap_content"
android:text=">" />

</LinearLayout>

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum