pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilad Denneboom <gilad.denneb...@gmail.com>
Subject Re: Any way out for changing text font size dynamically
Date Wed, 07 Dec 2011 21:08:22 GMT
Are you talking about text inside a form text field? If so, just set the
font size to 0, which means it will automatically fit the size of the box.

On Wed, Dec 7, 2011 at 8:06 PM, vivek <vivek@dcis.net> wrote:

> Hi All,
>
> I need to change the text font size dynamically inside a text field -
> let's say if text doesn't fit into a text field, I want to reduce the font
> size until it gets fit into given text box.
>
> I think I need to change appearance string of text field. But my problem
> is, da (default appearance) of PDVariableText is a private variable without
> any setter method. And I can't change str (which is actual appearance
> string ) of COSString as well.
>
> Can I achieve this without changing source code?
>
>
> --
> Thanks
> Vivek Saini
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message