Replies: 1 comment 3 replies
-
So, if I'm reading that right, you're asking for the bounding box of the text to replace, and then using the height of that box as the fontsize. Consider the bounding box of 'ocean' and the bounding box of 'Aphrodite'. Same font. Radically different heights. Hopefully that makes it clear how bad an idea it is to try to estimate the font size from the bbox. Using s["size"] would be better, I think. But even then, attempting to match text in this way is going to be hit and miss unless you have exactly the same font. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
1-test_2.pdf
1-test.pdf
Beta Was this translation helpful? Give feedback.
All reactions