pdfplumber icon indicating copy to clipboard operation
pdfplumber copied to clipboard

Add `autodetect_direction` option to text-extraction methods

Open jsvine opened this issue 2 years ago • 0 comments

Inspired by https://github.com/jsvine/pdfplumber/issues/1102#issuecomment-1983611599

Particularly with rotated (non-horizontal) text, it may be difficult for a user to predict whether the text will go top-to-bottom or bottom-to-top. I could envision an opt-in, heuristic-based autodetect_direction=True flag that examines the original character order to determine the correct direction for a given sub-chunk of text. (In theory, this could also apply to the non-rotated text.)

jsvine avatar Mar 11 '24 15:03 jsvine