help with react

hey there i want to build a front end project that allows users to copy text from pdf and images, how can i do it and how to to approach it
3 Replies
Jochem
Jochem7mo ago
You can just show the pdf in the browser
Jochem
Jochem7mo ago
All the modern browsers support just embedding a pdf using the object tag https://developer.mozilla.org/en-US/docs/Web/HTML/Element/object
MDN Web Docs
: The External Object element - HTML: HyperText Markup Language | MDN
The HTML element represents an external resource, which can be treated as an image, a nested browsing context, or a resource to be handled by a plugin.
Jochem
Jochem7mo ago
If the pdf has text content, and doesn't have settings / drm to prevent it, users can copy the text on there