Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1
  • 2

TOPIC:

Search regular expression in pdf 8 years 4 weeks ago #10426

  • Rignanese
  • Rignanese's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 17
  • Thank you received: 0
Hi,
is it possibile with Radaee library to search Regular Expression in a pdf?
Regards

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

Search regular expression in pdf 8 years 4 weeks ago #10427

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
consider Regular Expression is most popular, and lots open source enabled.
this feature is possible,
currently, u can implement it on APP layer with java.

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

Search regular expression in pdf 8 years 3 weeks ago #10429

  • ankur123987
  • ankur123987's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Available as freelancer (ex website to app 30min)
  • Posts: 97
  • Thank you received: 0
hey Radaee could you provide any demo for serach the text with in pdf or write separate thread for RDPDFViewer Module?

Thanks

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

Last edit: by ankur123987.

Search regular expression in pdf 8 years 3 weeks ago #10430

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
It's mostly an android development, we could work on it within some days starting from now but it could be a proof of concept and not a full usable class.

You should develop on your own:
- cycle through pages ("n" page)
- extract text from pages and put it in an array of "n" elements
- apply your regular expression to each array element
- find the first an last char extracted by regex from page "m"
- inspect for the whole substring in the "m" page and highlight it on the page
- when moving to a different page you should apply step of above point using the proper substring

Different approach:
- cycle through pages ("n" page)
- extract text from actual page
- if regex is false continue cycling
- if regex is good, find the first an last char extracted by regex from page "m"
- inspect for the whole substring in the "m" page and highlight it on the page
- when moving to a different page you should cycle through pages starting from actual one and looking for a new positive result

As you could guess the whole process couldn't be fast.
The first approach will be slower at start and quicker when array result is ready.
The first approach could be adopted to provide a full result list to user.
The second approach will be quicker while starting up but slower when moving.

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

Search regular expression in pdf 6 years 3 months ago #13310

  • sivus
  • sivus's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
Hi,
is it now (01.2018) possibile with Radaee library to search Regular Expression in a pdf?
Regards

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

Search regular expression in pdf 6 years 3 months ago #13311

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
No. Main reason is that such an approach would be quite slow and we prefer not to offer a feature with poor performances.

We can offer a full indexing and FTS approach performances are really great (after having indexed the file, the FTS search relies on sqlite-fts tables).
We've developed both clients-side (Android and iOS, coming soon Windows) and server side (Linux / Windows Server).

We offer it as add-on module.

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

  • Page:
  • 1
  • 2
Powered by Kunena Forum