KL
fair, but that check was only ever meant to catch the glued-words problem, not ordering, that's a different failure. for column order the quickest thing i've found is sorting PyMuPDF's text blocks column-first and checking the output follows that sequence, interleaving shows up right away. pymupdf4llm already tries to detect columns so i'd worry more about pypdf there. page markers on scanned/rotated pages i honestly haven't tested, only clean digital stuff like the arxiv paper. scanned pages have no text layer anyway so without OCR you'd just get an empty marker. will try a couple and update the post
