I use the following codes and tried to change layout mode from 0 - 6 in the file "Global.java" (method "default_config"). The result will be correct only for layout mode = 2 (Curl effect). But other layout modes still incorrect. Do you think this is bug for other layout modes?
I also found that if layout mode is 2 (Curl effect) but device is in landscape mode, hi-light for even page (page#2, page#4, etc) will incorrect but hi-light for odd page (page#1, page#3, etc) will incorrect. Do you think this is bug?
Layout | Page that hi-light matched word
0 | 30
1 | 29
2 | 31 (Correct)
3 | 3
4 | 3
5 | 30
6 | 3
private void InitView()
{
// m_doc.SetCache( Global.tmp_path + "/temp.dat" );//set temporary cache for editing.
m_reader.PDFOpen(m_doc, false, this);
//m_reader.PDFGotoPage(10);
m_thumb.thumbOpen(m_reader.PDFGetDoc(), this);
setContentView(m_layout);
btn_ink.setEnabled(m_reader.PDFCanSave());
btn_rect.setEnabled(m_reader.PDFCanSave());
btn_oval.setEnabled(m_reader.PDFCanSave());
btn_note.setEnabled(m_reader.PDFCanSave());
btn_save.setEnabled(m_reader.PDFCanSave());
btn_line.setEnabled(m_reader.PDFCanSave());
m_reader.PDFGotoPage(30);
m_thumb.thumbGotoPage(30);
new Handler().postDelayed(new Runnable() {
public void run() {
txt_find.setText("the");
onFindNext();
}
}, 10);
}