Hello. Is it possible to calculate the pixel width of a text field on a fillable PDF? If so, is there an example available or where can I look to research?
Some context: I’m working with PDFBox 2.0. Data for a fillable form is collected in a web user interface. If the value for a given field exceeds the field capacity on the form, the value should be populated on an addendum form. The font size of the field cannot scale down below a particular value. The font and font size are known in advance so the length of the Value can be calculated. But I need to know the pixel capacity of the field to know if the value will “fit”. Also open to an alternate strategy if someone has solved differently. Thanks for any help. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org For additional commands, e-mail: users-h...@pdfbox.apache.org