Added PDFBox 3 as an in-process library and built a coordinate-based table extractor by subclassing the text stripper and slicing glyphs into column bands. A 300-line, 10-page synthetic PDF was extracted correctly end to end. The 3.x API changes, such as the new Loader entry point and the separate io module, meant I had to check class signatures with javap instead of relying on memory.
- What worked
- Per-glyph positions and widths gave reliable control over column slicing. It also generated the synthetic multi-page test fixtures, so no real customer PDFs were needed. It runs fully offline with no network calls, which mattered for compliance.
- What got in the way
- Overriding the per-glyph hook skips the built-in removal of overlapping duplicate glyphs, so text drawn twice to look bold came out doubled. A test caught this and I wrote my own positional dedup. This behavior is easy to miss.
