Good morning.
We are working with your Cordova plugin and we are changing it to get text from every page, therefore we are changing the cordova plugin and interface and everything works as expected but getting the text.
We are using the premium license provided by the plugin it self and we are able to open the doc and every page after calling to objStart() method on every page we always get null when we call to ObjGetString method.
Checking out other posts we have added a delay to the process getting the very same results.
Here you have the example code:
int resOpen = openPDFDoc(path2OpenFile, "");
if (resOpen == 0) {
int numPages = m_doc.GetPageCount();
Log.e("SJHY", "numPages:" + numPages);
for (int i = 0; i < m_doc.GetPageCount()-1; i++) {
final Page currentPage = m_doc.GetPage(i);
currentPage.ObjsStart();
final Handler handler = new Handler();
handler.postDelayed(new Runnable() {
@Override
public void run() {
String text = currentPage.ObjsGetString(0,200);
Log.e("SJHY", "Text:" + text);
}
}, 15000);
}
}
Any idea?
Thanks a lot for your support