[
https://issues.apache.org/jira/browse/PDFBOX-5060?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Maruan Sahyoun reassigned PDFBOX-5060:
--------------------------------------
Assignee: Maruan Sahyoun
> 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
> Assignee: Maruan Sahyoun
> Priority: Major
> Labels: AcroForm, Appearance
> Fix For: 2.0.23, 3.0.0 PDFBox
>
>
> 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]