Hola, adicional a lo que ya te dijeron, también podrías utilizar la herramienta pdftotext
https://www.xpdfreader.com/dl/xpdf-tools-win-4.00.zip del buen xpdf, lo puedes invocar por línea de comandos desde código y te genera un archivo con el texto del documento pdf.
Cita:
pdftotext(1) General Commands Manual pdftotext(1)
NAME
pdftotext - Portable Document Format (PDF) to text converter (version
4.00)
SYNOPSIS
pdftotext [options] [PDF-file [text-file]]
|