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

Silent fail of PDTextField.setValue when font encoding missing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.24
    • 2.0.25, 3.0.0 PDFBox
    • AcroForm, PDModel
    • None

    Description

      by momaison

      PDTextField field = (PDTextField) (pDAcroForm.getField("SampleField"));
      field.setValue("é");
      

      /V is set correctly, but in the appearance stream 0xFF is used.

      Attachments

        1. simple_form_Helvetica_no_encoding.pdf
          2 kB
          Tilman Hausherr
        2. simple_form_Helvetica_no_encoding-saved.pdf
          1 kB
          Tilman Hausherr

        Activity

          People

            tilman Tilman Hausherr
            tilman Tilman Hausherr
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: