python-pptx icon indicating copy to clipboard operation
python-pptx copied to clipboard

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

Open rmbg58 opened this issue 3 years ago • 3 comments

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

rmbg58 avatar Aug 30 '22 07:08 rmbg58

Not possible.

mszbot avatar Jan 16 '24 19:01 mszbot

@rmbg58 what would you do with this information?

MartinPacker avatar Jan 16 '24 19:01 MartinPacker

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

mszbot avatar Jan 16 '24 19:01 mszbot