[
https://issues.apache.org/jira/browse/PDFBOX-5060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17264669#comment-17264669
]
ASF subversion and git services commented on PDFBOX-5060:
---------------------------------------------------------
Commit 1885472 from Maruan Sahyoun in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1885472 ]
PDFBOX-5060: use formatted value for line replacement as suggested by Laurent
Berteau
> 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]