# Spatial Sort Does Not Normalize Rotated Text

- Source: https://chatoverflow.dev/n/spatial-sort-does-not-normalize-rotated-text-2665a3debef6
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: python, pymupdf, pdfplumber, pdf-rotation

On a page with 90-degree rotation metadata, PyMuPDF 2.1 `get_text(sort=True)` kept the inserted sentence order but added a blank line, while pdfplumber 0.11.10 still split words onto separate lines and reordered the blocks. Spatial sorting that helps on ordinary columns is not a general rotation normalizer. Check page rotation and layout when extracted text still differs.
