Diagnose the input before you blame the parser
Open the file and answer three questions. Is there a text layer, or is this an image pretending to be a PDF? What is the effective resolution of the page in pixels per inch? Is the page straight? Those three answers explain the large majority of "the table came out garbled" tickets.
A PDF can contain real text objects, a scanned image, or both — the PDF format has no obligation to store anything as text. If selecting text in a viewer selects nothing, no amount of parser tuning helps: you are doing image recognition, and image quality is now your main lever.
- Resolution: 300 DPI for printed text is the comfortable target; 200 DPI is workable; below 150 DPI, thin digits start losing strokes.
- Skew: a page rotated by two degrees breaks row alignment across a wide table. Deskew before recognition.
- Compression: repeated JPEG saves smear digit edges. Prefer PNG or TIFF for archived scans.
- Binarization: aggressive black-and-white conversion deletes light table rules and faint dot-matrix print. Grayscale preserves more.
- Photos: a phone photo adds perspective distortion and uneven lighting on top of everything else. Ask senders for a scan or a native PDF.