Extract text - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Development and suggestions about third part tool integration.
Cordova, Xamarin, Basic4Android topics are listed here.
  • Page:
  • 1
  • 2

TOPIC: Extract text

Extract text 1 year 7 months ago #12203

  • miguel.garcia
  • miguel.garcia's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 24
  • Thank you received: 0
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

Please Log in or Create an account to join the conversation.

Extract text 1 year 7 months ago #12205

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
We have checked and the following code is working, are you facing this problem with certain documents?
if yes, can you send us a sample?
for (int i = 0 ; i < m_doc.GetPageCount() ; i++)  {
	Page page = m_doc.GetPage(i);
	page.ObjsStart();
	String text = page.ObjsGetString(0, page.ObjsGetCharCount() - 1);
	Log.e("SJHY", "Text:" + text);
}

Please Log in or Create an account to join the conversation.

Extract text 1 year 7 months ago #12206

  • miguel.garcia
  • miguel.garcia's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 24
  • Thank you received: 0
I am trying to upload a file example but it exceeds the file allowed by the adminstrator.

Is there another way to send you the file?

Thanks

Please Log in or Create an account to join the conversation.

Last edit: by miguel.garcia.

Extract text 1 year 7 months ago #12213

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
We have increased the limit, you can retry and if you still cannot upload, you can use dropbox, wetransfer or any file sharing software.

Please Log in or Create an account to join the conversation.

Last edit: by nermeen.

Extract text 1 year 7 months ago #12214

  • miguel.garcia
  • miguel.garcia's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 24
  • Thank you received: 0
Lets check whether it can be uploaded

Please Log in or Create an account to join the conversation.

Extract text 1 year 7 months ago #12215

  • miguel.garcia
  • miguel.garcia's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 24
  • Thank you received: 0
It seems it still exceeds the limit.

Would you mind trying to download from this url?

drive.google.com/open?id=0B-xf7TKFtDAvaTVKUGJobVBZZFE

Thanks

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Powered by Kunena Forum