scanny / python-pptx

Create Open XML PowerPoint documents in Python
MIT License
2.28k stars 503 forks source link

How to locate the coordinate a single character in text frame? #842

Open rmbg58 opened 1 year ago

rmbg58 commented 1 year ago

I can only get left, top coordinate of the shape itself, but how could I get the coordinate of a single character inside? not the position of its index of the string, but coordinates like the left / top properties. and also, how could I tell if specified text is in which line of the text_frame or paragraph?

Thanks a lot for helping me out

mszbot commented 6 months ago

Not possible.

MartinPacker commented 6 months ago

@rmbg58 what would you do with this information?

mszbot commented 6 months ago

Probably place another object somewhere in relation to it. Maybe an arrow shape is my guess. We do something like this.