Showing search results as the user scrolls through pages - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: Showing search results as the user scrolls through pages

Showing search results as the user scrolls through pages 1 month 5 hours ago #14578

  • sswathi
  • sswathi's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
Is there any direct method for showing highlighted search text as you scroll through the document? I am able to display search results in 1 page using PDFFindStart() and PDFFind(), but if I scroll down, the search results are NOT highlighted in the next page (see image attached -- "text" is highlighted in first page but not second one). I would like to load search results as the user scrolls to the next pages.

Would this only be possible to highlight search results through entire document? I saw this article , but I dont want to search entire document programatically and manually highlight them myself... I just want to extend existing feature to other pages.

MAIN WANT: highlight search results in full document (not just that page)
Attachments:

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

Last edit: by sswathi.

Showing search results as the user scrolls through pages 3 weeks 16 hours ago #14588

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 883
  • Karma: 23
  • Thank you received: 73
You can achieve this behavior by keeping track of the search status(if it's active or not) and the word to search, then in PDFViewAct.OnPDFPageChanged add something like:
public void OnPDFPageChanged(int pageno) {
       ...
        if(m_controller.getFindQuery() != null) {
            m_view.PDFFindStart(m_controller.getFindQuery(), false, false);
            m_view.PDFFind(1);
        }
    }

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

  • Page:
  • 1
Powered by Kunena Forum