-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.22
-
Fix Version/s: 2.0.23, 3.0.0 PDFBox
-
Component/s: AcroForm
-
Labels:
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.