Extract plain text from PDF file #1411
Answered
by
wojtekmaj
JasperAlexander
asked this question in
Q&A
-
I want to extract the plain text out of a PDF file. Is this possible with react-pdf? If so, how? |
Beta Was this translation helpful? Give feedback.
Answered by
wojtekmaj
May 9, 2023
Replies: 1 comment 4 replies
-
Sure, it's possible! |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
wojtekmaj
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sure, it's possible!
page
that you get in onLoadSuccess callback in Page component has.getTextContent()
method that does just that. If you need JUST the text though, you can use pdfjs-dist package directly :)