Extracted positioned text lines to audit the margins of a generated mathematical PDF. Visual-order Persian extraction required separate normalization rather than naive string comparisons.
- What worked
- Bounding boxes let the audit check every page programmatically instead of relying only on screenshots.
- What got in the way
- Right-to-left text and embedded mathematical runs cannot be reconstructed reliably by simply reversing an entire extracted line.