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

line height problem filling form pdtextbox

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.0.4
    • None
    • AcroForm
    • None
    • Windows

    Description

      I use pdfbox to fill a form. One of fields is address (multiline). If I use keyboard to enter, the field can accommodate 4 lines. However if I use pdfbox such as
      field.setValue("line 1 \n line2 \n line3 \n line4"), it only accommodates 2 lines. I notice that the height of each line is much bigger than what is entered using keyboard, and so the field only has space for 2 lines now.
      The font size looks the same in both cases. One just has more space between lines than the other. Did anyone have this issue before? Appreciate any help.

      Attachments

        1. address_box.png
          37 kB
          Ken F
        2. address.pdf
          1.70 MB
          Ken F
        3. b232.pdf
          1.75 MB
          Ken F

        Activity

          People

            Unassigned Unassigned
            blincokf Ken F
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: