Search regular expression in pdf - 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...
Questions about Android development and PDF
  • Page:
  • 1
  • 2

TOPIC: Search regular expression in pdf

Search regular expression in pdf 2 years 8 months ago #10426

  • Rignanese
  • Rignanese's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • 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 2 years 8 months ago #10427

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 847
  • Karma: 43
  • Thank you received: 12
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 2 years 8 months ago #10429

  • ankur123987
  • ankur123987's Avatar
  • Offline
  • Expert Boarder
  • Expert Boarder
  • 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 2 years 8 months ago #10430

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 571
  • Karma: 6
  • Thank you received: 46
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 11 months 4 days ago #13310

  • sivus
  • sivus's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • 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 11 months 4 days ago #13311

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 571
  • Karma: 6
  • Thank you received: 46
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