Solved. Using
my $width = $text-> advancewidth( $string );
but remembering to use the same font in $text and $annotation works fine!
In reply to Re^3: Add text field to PDF
by Anonymous Monk
in thread Add text field to PDF
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |