react-native-pdf icon indicating copy to clipboard operation
react-native-pdf copied to clipboard

Search and text highlights

Open Ellerage opened this issue 3 years ago • 20 comments

I am making an application for reading books and your library suits me. But I need the functionality:

  1. Search by text
  2. the ability to select text and change the background of the selected text (highlights)
  3. In the build apk the object with chapters and their titles is empty

react-native 0.63.3 react-native-pdf 6.2.2

What platform does your issue occur on? (android/ios/both) both

Ellerage avatar Mar 16 '21 13:03 Ellerage

+1

arthur-wfb avatar Mar 16 '21 13:03 arthur-wfb

the same problem, the functionality of this library would be useful!

onLoadComplete returns empty tableContents in apk build

Impeqq avatar Mar 16 '21 13:03 Impeqq

+1

endifai avatar Mar 16 '21 13:03 endifai

I have the same problem +1

RAPCAP avatar Mar 16 '21 13:03 RAPCAP

+1

BattleCupcake avatar Mar 16 '21 13:03 BattleCupcake

+1

akujsda avatar Mar 16 '21 13:03 akujsda

+1

Hellwest avatar Mar 16 '21 13:03 Hellwest

+1

MbIWaTUK avatar Mar 16 '21 13:03 MbIWaTUK

+1

Mai1z avatar Mar 16 '21 13:03 Mai1z

+1

carielis avatar Mar 16 '21 13:03 carielis

+1

Helwon avatar Mar 16 '21 13:03 Helwon

The same problem while using the library +1

Zeeberg avatar Mar 16 '21 14:03 Zeeberg

+1

castalonirenz avatar Mar 25 '21 09:03 castalonirenz

Anyone found such library which has search and bookmark feature? (For FREE)

lambdatechdev avatar Mar 25 '21 23:03 lambdatechdev

As far as I know you can actually select text (to copy) on iOS 11.0+ targets, which use PDFKit by default.

On the Android side text search and highlight aren't gonna be something that will be possible in the near future. This library uses AndroidPdfViewer on the native side, which doesn't support either and has been unmaintained for almost 3 years.

If you need these features you'll have to go with a commercial solution like Foxit, which even has a first party React Native library. MuPDF may also support them and is free for non-commercial projects, but it seems like you would have to build the RN library yourself.

yfunk avatar Apr 08 '21 15:04 yfunk

I have the same problem +1

chenyunshan avatar Jul 21 '21 03:07 chenyunshan

+1

Winxpina avatar Feb 28 '22 10:02 Winxpina

+1

jhon-hst avatar Mar 07 '23 20:03 jhon-hst

+1 Any updates regarding search and highlight text in PDF? @Ellerage Have you found any RN solution for that?

anaelmashinsky avatar Jan 31 '24 09:01 anaelmashinsky