Title: RE: [iText-questions] automatic font sizing and wrapping?


    -----Original Message-----
    From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] On Behalf Of Andy Kriger

    Sent:   Thursday, December 04, 2003 20:30
    To:     [EMAIL PROTECTED]
    Subject:        [iText-questions] automatic font sizing and wrapping?

    We have a system that currently uses FDF files to create dynamic PDFs
    using a form template. There are fields defined in the template and data
    is associated with each field. A field can be marked as multiline and a
    field's font size can be 'Auto' (the font size is reduced to fit all the
    text within the field).

    Since there the FDF system has limitations, we are moving to iText and
    creating the PDFs programmatically. Is there similar font
    wrapping/sizing behavior built into iText?

    I want to give:
    * the X/Y location
    * the width/height of a rectangle
    * the text string (or bytes)

    No problem. That's what ColumnText does.


    And do:
    * draw text into that area

    Ok.

    * have the text automatically wrap

    Ok.

    * have the text scale to fit the space

    There's code to do this in TextField.java. Adapt it for your needs.

    Best Regards,
    Paulo Soares

Reply via email to