Can I provide matrix to fitz.utils.get_text? #2850
-
|
Similarly to I want to use the @JorjMcKie I know you can help me with that |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Sorry, there is no can do - for principal reasons, has nothing to do with MuPDF / PyMuPDF. "When I know the position of some text on the page, then where on the image do I find hat text?"
To achieve what you want, you can use the matrix |
Beta Was this translation helpful? Give feedback.
Sorry, there is no can do - for principal reasons, has nothing to do with MuPDF / PyMuPDF.
But I think I know what you are aiming at:
"When I know the position of some text on the page, then where on the image do I find hat text?"
Rectrectangles with float coordinates.page.rect->pix.irect.To achieve what you want, you can use the matrix
mat = page.rect.torect(pix.irect). Use this matrix to compute the position of some pagebboxin the image bybbox * mat, or even more co…