Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

PDFFind method is not correct on last page.

More
IP: 192.168.0.71 11 years 10 months ago - 11 years 10 months ago #7786 by oemilk
- "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?
Code:
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: 11 years 10 months ago by EugeneP.
More
IP: 192.168.0.71 11 years 10 months ago #7789 by radaee
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.
More
IP: 192.168.0.71 11 years 10 months ago #7790 by oemilk
So.. is it bug??

If not, How can I fix it?
What is the class file for solving it?
Time to create page: 0.390 seconds
Powered by Kunena Forum