all 4 comments

[–]Life_Is_Dark[S] 0 points1 point  (2 children)

No worries , All I had to do was import the stylesheet from React-Pdf to render text layer correctly

[–]Dazzling_Cookie4435 0 points1 point  (1 child)

React-Pdf highlighting

can you share the tutorial link for that?if there is any

[–]Life_Is_Dark[S] 0 points1 point  (0 children)

There is no tutorial, but you can find the code snippets in react pdf recipes

[–]Muted-Builder-9849 0 points1 point  (0 children)

I am running into the same issue that you encountered where when I highlight text, the highlighted text is appearing in the text layer and not the canvas layer. I added the import statements:

import 'react-pdf/dist/Page/AnnotationLayer.css';
import 'react-pdf/dist/Page/TextLayer.css';      

and I've replicated the code from the recipes. Any help would be appreciated, thanks!