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

AcroForm PDTextField formatting lost when setting value

    XMLWordPrintableJSON

    Details

      Description

      Formatted value of a form text field with assigned format action is lost in org.apache.pdfbox.pdmodel.interactive.form.AppearanceGeneratorHelper.setAppearanceValue(String apValue) method.

      Formatted value is processed with first method line :

      value = getFormattedValue(apValue);

       

      But then if the field is of PDTextFieldType, formatted value stored in this.value is replaced with :

      value = apValue.replaceAll

       Shoud instead be :

      value = value.replaceAll

       to preserve previously processed formatted value.

       

        Attachments

          Activity

            People

            • Assignee:
              msahyoun Maruan Sahyoun
              Reporter:
              l.berteau Laurent BERTEAU
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: