PDFFind method is not correct on last page. - 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: PDFFind method is not correct on last page.

PDFFind method is not correct on last page. 3 years 11 months ago #7786

  • oemilk
  • oemilk's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 28
  • Thank you received: 0
- "Test.pdf" is 4 page pdf files.
- I want to find a "AAA" word.
- "AAA" words are on 1,2,4 pages.
- so I go to 4 page, and I had tried to find "AAA".
- But search highlight is applied 2 page's "AAA".
This situations are occured not only "Test.pdf" file but also other files.
So I found a below codes from searching.
But it did not fix my issue.
- Go to last page. (page 4)
- PDFFind(1)
- highlight (page 2)
I think this situations are occured when found a word on last page.
Is it only my problem?
Could you check it?
OnPageClicked(pageNumber);
				new Handler().postDelayed(new Runnable() {
					public void run() {
						mReader.PDFFindStart(searchText, false, false);
						for (int i = 0; i < duplicateNumber; i++) {
							mReader.PDFFind(1);
						}
					}
				}, 1000);

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

Last edit: by EugeneP.

PDFFind method is not correct on last page. 3 years 11 months ago #7789

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 846
  • Karma: 43
  • Thank you received: 12
mReader.PDFFind(); is a asynchronous method.
if your current finding at page 1, and next finding at page 2.
invoke this method, will find page 2 in backing thread.
and ignore all finding op, till find page 2 in backing thread ends.

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

PDFFind method is not correct on last page. 3 years 11 months ago #7790

  • oemilk
  • oemilk's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 28
  • Thank you received: 0
So.. is it bug??

If not, How can I fix it?
What is the class file for solving it?

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

  • Page:
  • 1
Powered by Kunena Forum