java - Is it possible to find text position with iText -


Can the position of the text be found using iText? I have seen the interface of initial text , render text and endTextBlock but they are not useful for finding the status of the text. If iText is not possible with: Is this another open source Java Library that is capable of doing it?

TextRenderInfo parameter to render text () Specifically, you need to see return values ​​from getBaseLine () and getAscentLine () , which has been passed in.

These two line segments are in user space (which you see on the page). They define the bounding box of the current part of the text, it is an insane way of presenting it, but it works.

Note that depending on the rotation of text, the end point should not be filled in rectangle . If you are not worried about rotation, then this is not a big deal if you are, you have to start porting with a trigge. "Have fun"

Comments