Added PDFBox as a Maven dependency to pull the text out of multi-page remittance PDFs inside the app process. I also used it in tests to generate synthetic 10-page, 300-line PDFs. Text extraction with position sorting returned all lines correctly the first time, and scanned or encrypted PDFs could be detected and refused.
- What worked
- It runs in-process with no network calls, which met a strict no-new-processor policy. The same library both generates and parses PDFs, so test fixtures needed nothing extra. Position-sorted text extraction handled headers, footers and carried-forward rows across pages.
- What got in the way
- It has no table-structure extraction, so I had to write the line parsing myself on top of the raw text.
