Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC:

PDFFind method is not correct on last page. 9 years 5 months ago #7786

  • oemilk
  • oemilk's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • 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. 9 years 5 months ago #7789

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
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. 9 years 5 months ago #7790

  • oemilk
  • oemilk's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • 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