Reputation: 167
I'm working on this nametag designer project, and because the elements are later added to pdf, i need to know the EXACT placement on the tag.
TextField's are giving me some problems, cause the textfield "padding" changes when you change the fontsize.
I either need to remove the "padding" or get the x,y position of the text inside the TextField.
Leading test:
Any ideas on this! Thanks!
Upvotes: 0
Views: 1171
Reputation: 395
I'm not sure what "padding" you need, but you can get all offsets with this methods: getCharBoundaries(), getLineMetrics().
Upvotes: 2