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

Multiline fields won't get rendered correctly if there are multiple paragraphs in field value

    Details

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

      Description

      I have problem with multiline fields in form filling. It seems that if i have value with newlines "\n" rendering won't work correctly. Every line seems to be rendered over previous line.

      E.g.

      value = "1\n2\n3\n4"
      

      will be rendered so than every number are rendered over each other but what I'm expecting would be something like:

      1
      2
      3
      4
      

        Attachments

        1. MultilineFields.pdf-1.png
          85 kB
          Marko Kattelus
        2. PDFBox_test.pdf
          123 kB
          Marko Kattelus
        3. test473031220671768577.pdf
          124 kB
          Marko Kattelus

          Activity

            People

            • Assignee:
              msahyoun Maruan Sahyoun
              Reporter:
              kattelus Marko Kattelus
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: