Company logo
  • Jobs
  • Bootcamp
  • About Us
  • For professionals
    • Home
    • Jobs
    • Courses
    • Questions
    • Teachers
    • Bootcamp
  • For business
    • Home
    • Our process
    • Plans
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Calculator

0

49
Views
How to send clicked word to an API call from pdf?

I am creating a react app in next js and ran into a problem. I wanted to click on a word in displayed pdf and send it to an API call. I've seen a few pdf to text solutions before, but they destructurize the document. Is this the only option? All the highlight options in pdfs are just based on a position in canvas.
And another question - how to properly handle this click event. Let's say even that we work with a text document. How to wrap these words so I could use this onClick on them?

7 months ago ยท Juan Pablo Isaza
Answer question
Find remote jobs