wonday / react-native-pdf

A <Pdf /> component for react-native
MIT License
1.58k stars 540 forks source link

Text Highlighting feature #525

Open Raheel1258 opened 3 years ago

Raheel1258 commented 3 years ago

Pdf annotation is not working, I want to highlight the selected text please let me know if it if possible. below is my code for calling react-native-pdf.

<Pdf ref={(pdf) => { setPdf(pdf) }} enableAnnotationRendering={true} source={source} onLoadComplete={(numberOfPages, filePath) => { console.log(number of pages: ${numberOfPages}); }} onPageChanged={(page, numberOfPages) => { console.log(current page: ${page}); }} onError={(error) => { console.log(error); }} onPressLink={(uri) => { console.log(Link presse: ${uri}) }} style={styles.pdf} />

What react-native version are you using? 0.62.2 What react-native-pdf version are you using? 6.2.2 What platform does your issue occur on? (android/ios/both) both

anshumanburman commented 3 years ago

@Raheel1258 have you implemented the same feature if yes can you provide me the solution?

av8ramit commented 10 months ago

Is there any update on this feature? Is it possible?

anaelmashinsky commented 7 months ago

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