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

Improve handling of multiline text boxes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.1
    • 2.0.0
    • AcroForm

    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

              msahyoun Maruan Sahyoun
              willmay Will May
              Votes:
              6 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: