- Posts: 17
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about Android development and PDF
Search regular expression in pdf
9 years 11 months ago #10426
by Rignanese
Search regular expression in pdf was created by Rignanese
Hi,
is it possibile with Radaee library to search Regular Expression in a pdf?
Regards
is it possibile with Radaee library to search Regular Expression in a pdf?
Regards
9 years 11 months ago #10427
by radaee
Replied by radaee on topic Search regular expression in pdf
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.
this feature is possible,
currently, u can implement it on APP layer with java.
- ankur123987
-
- Offline
- Premium Member
-
- Available as freelancer (ex website to app 30min)
Less
More
- Posts: 97
- Thank you received: 0
9 years 11 months ago - 9 years 11 months ago #10429
by ankur123987
Replied by ankur123987 on topic Search regular expression in pdf
hey Radaee could you provide any demo for serach the text with in pdf or write separate thread for RDPDFViewer Module?
Thanks
Thanks
Last edit: 9 years 11 months ago by ankur123987.
9 years 11 months ago #10430
by support
Replied by support on topic Search regular expression in pdf
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.
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.
IP: 192.168.0.71
8 years 2 months ago #13310
by sivus
Replied by sivus on topic Search regular expression in pdf
Hi,
is it now (01.2018) possibile with Radaee library to search Regular Expression in a pdf?
Regards
is it now (01.2018) possibile with Radaee library to search Regular Expression in a pdf?
Regards
IP: 192.168.0.71
8 years 2 months ago #13311
by support
Replied by support on topic Search regular expression in pdf
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.
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.
Time to create page: 0.415 seconds