Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-1402

Improve handling of multiline text boxes

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.1
    • Fix Version/s: 2.0.0
    • Component/s: AcroForm
    • Labels:

      Description

      The current implementation for setting the appearance of content that is added to a multiline text box is incorrect in a number of ways:

      • Doesn't position the start of the text in the correct location
      • Incorrectly uses font size '0' instead of auto-sizing the font
      • Doesn't break up very long lines
      • If the font size is very large, then the next line is started too close to the previous line.

        Attachments

        1. automatic-font-size-calculation.patch
          4 kB
          Oliver Hofmann
        2. multiline_linebreaks_alignment.patch
          17 kB
          Oliver Hofmann
        3. multiline_positioning.patch
          8 kB
          Oliver Hofmann
        4. multiLine.patch
          13 kB
          Will May
        5. MultilineTests-20150313.pdf
          971 kB
          Maruan Sahyoun
        6. pdf-sample-fields.filled.pdf
          13 kB
          Maruan Sahyoun
        7. pdf-sample-fields.pdf
          19 kB
          Andrew Sengul
        8. pdf-sample-fields-out.pdf
          15 kB
          Andrew Sengul

          Issue Links

            Activity

              People

              • Assignee:
                msahyoun Maruan Sahyoun
                Reporter:
                willmay Will May
              • Votes:
                6 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: