Use the pdftext CLI tool
masterThe pdftext tool is a toolkit for extracting and replacing text within PDF files. It provides two primary modes of operation: extraction and replacement.
Extraction
Extract text content from specific pages or retrieve document metadata.
Replacement
Replace existing text strings at specific indices with new text, allowing for positional offsets and alignment adjustments.