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

Improve handling of line breaking characters when setting AcroForm field values

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.1, 2.0.2, 2.0.3, 3.0.0 PDFBox
    • 2.0.3, 3.0.0 PDFBox
    • AcroForm

    Description

      When filling AcroForm fields the text supplied to setValue might contain control characters such as \n \r, \t and others which leads to an {{ java.lang.IllegalArgumentException}} for most fonts as there is no glyph to represent these.

      We could enhance the processing of the string provided to provide proper replacements similar to how Adobe Acrobat handles that.

      Attachments

        1. ControlCharacters.pdf
          12 kB
          Maruan Sahyoun

        Activity

          People

            msahyoun Maruan Sahyoun
            msahyoun Maruan Sahyoun
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: