[ 
https://issues.apache.org/jira/browse/PDFBOX-2918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14663295#comment-14663295
 ] 

Maruan Sahyoun commented on PDFBOX-2918:
----------------------------------------

Although that could be done with the setters it might be better to have an 
extra method as doing multiple settings would require to constructAppearances() 
every time. Simply replacing e.g. the border definition wouldn't work as the 
padding of the text is dependent on the border width.

Constructing the appearance when it's next fetched would only work AFAIK if 
after the changes the form will not be saved immediately. Or we delay 
constructing appearances just before saving the document.

> Allow to refresh an AcroForm field appearance
> ---------------------------------------------
>
>                 Key: PDFBOX-2918
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2918
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: AcroForm
>    Affects Versions: 1.8.10, 2.0.0
>            Reporter: Maruan Sahyoun
>              Labels: Appearance
>
> When a field widgets 'style' is changed such as a border is defined this is 
> not immediately visible as the change is not reflected in the widgets 
> appearance stream.
> There should be a possibility to force a refresh of the fields appearance 
> after such settings have been specified.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to