[ 
https://issues.apache.org/jira/browse/PDFBOX-5060?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Laurent BERTEAU updated PDFBOX-5060:
------------------------------------
    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.

 

  was:
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 :

{{this.value = this.getFormattedValue(apValue);}}

 

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

{{this.value = apValue.replaceAll}}

 Shoud instead be : 

{{this.value = this.value.replaceAll}}

 to preserve previously processed formatted value.

 


> AcroForm PDTextField formatting lost when setting value
> -------------------------------------------------------
>
>                 Key: PDFBOX-5060
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5060
>             Project: PDFBox
>          Issue Type: Bug
>          Components: AcroForm
>    Affects Versions: 2.0.22
>            Reporter: Laurent BERTEAU
>            Priority: Major
>              Labels: AcroForm, Appearance
>
> 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.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to