- Posts: 28
- Thank you received: 0
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.
IP: 192.168.0.71
11 years 10 months ago - 11 years 10 months ago #7786
by oemilk
PDFFind method is not correct on last page. was created 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?
- 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.
IP: 192.168.0.71
11 years 10 months ago #7789
by radaee
Replied by radaee on topic PDFFind method is not correct on last page.
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.
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.
IP: 192.168.0.71
11 years 10 months ago #7790
by oemilk
Replied by oemilk on topic PDFFind method is not correct on last page.
So.. is it bug??
If not, How can I fix it?
What is the class file for solving it?
If not, How can I fix it?
What is the class file for solving it?
Time to create page: 0.390 seconds