RadaeePDF.com :: Topic: PDFFind method is not correct on last page. (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about Android development and PDF

TOPIC: PDFFind method is not correct on last page.

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

  • oemilk
  • oemilk's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 28
  • Karma: 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);
Last Edit: 2 years 11 months ago by EugeneP.
The administrator has disabled public write access.

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

  • radaee
  • radaee's Avatar
  • OFFLINE
  • Moderator
  • Posts: 825
  • Thank you received: 10
  • Karma: 43
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.
The administrator has disabled public write access.

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

  • oemilk
  • oemilk's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 28
  • Karma: 0
So.. is it bug??

If not, How can I fix it?
What is the class file for solving it?
The administrator has disabled public write access.
Powered by Kunena Forum