MATLAB Answers

extractFileText returns <missing>

14 views (last 30 days)
Devon Goldberg
Devon Goldberg on 12 Apr 2019
Answered: Jon Cherrie on 23 Mar 2021
str = extractFileText('C:\Documents\SomeFile.pdf')
returns:
str =
<missing>
The PDF file I am trying to extract text from is a test data file, so it is mostly numbers. However, a function I found on FileExchange was able to parse most of the PDF but limited the amount of characters I could bring in. The function works just fine for a PDF file of a novel that I had handy. Is there a way to make extractFileText work for my file or will it be limited to only certain PDF files.

Answers (1)

Jon Cherrie
Jon Cherrie on 23 Mar 2021
The extractFileText function has been significantly rewritten for R2021a and may give different results for some PDF files. I recommend trying again with the latest version. If you are still seeing issues, please contact technical support.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by