Open adepase opened 6 years ago
What are the specs of device are you testing on? Stripping text is slow, but with the amount of pages you're stripping, it shouldn't be taking minutes to strip.
I'm testing on a Samsung s7 edge (so, a pretty good hardware) and trying to strip the attached pdf. 5 seconds only for pages from 0 to 3 (BTW: according to the docs it should start with 1 and be inclusive, but if I start from 1 I miss the front page) confessioni[1].pdf
Thank you
5 seconds for those pages is about what I would expect and similar to my time. As I mentioned before, text stripping is slow. The start page should be 1-indexed as you said, I'll look into why it's 0-indexed.
extracting text from sample is fast whereas when i use it in my own app it slows down massively any idea to fix it ?
Thank you for this library.
@pro-preet Its slower using the same PDF stripping in your code than it is stripping from sample?
I have a similar issue - text extracting is very slow, but only if the phone (S7) is connected with PC. (tested with small PDF, 20 words only...)
+1
Was looking to easily extract text, but a single page PDF with 35 lines of actual content, takes 20s or so on a fairly recent (Nokia 8.1 Android 10) device. Did not expect that.
I was expecting that the text is already present in the PDF format, so it's just a simple extraction? Apparently not?
update If you are looking to extract text in sub 1s time, I just found https://github.com/benjinus/android-support-pdfium which works very fast.
Try using thread to get data before its needed. you have to design an algorithm for when you want/need the data. hope it helps!
I think I'm missed something, because I cannot think it needs tens of seconds (or even minutes) to extract text. Can you please help me? This is my code (I start calling simpleReadPdf):