[
https://issues.apache.org/jira/browse/PDFBOX-3356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15293141#comment-15293141
]
Maruan Sahyoun edited comment on PDFBOX-3356 at 5/20/16 10:41 AM:
------------------------------------------------------------------
I'll fix that for 2.1 only and not apply the change to 2.0.x as this will
change the behavior of forms filling. If there are other opinions please raise
them.
The workaround for 2.0.x is to
{code}
PDAcroForm.setNeedAppearances(false);
... do the changes
PDAcroForm.setNeedAppearances(true);
{code}
If the state of {{NeedAppearances}} shall be retained when it was set to
{{true}}.
One should note that the PDF 2 specification calls for appearances to always
being generated and not depend on the NeedAppearances flag to let Adobe
Reader/Acrobat and others who support that flag generate the appearance.
was (Author: msahyoun):
I'll fix that for 2.1 only and not apply the change to 2.0.x as this will
change the behavior of forms filling. If there are other opinions please raise
them.
> Create a field appearance for a new value if NeedApperances is true
> -------------------------------------------------------------------
>
> Key: PDFBOX-3356
> URL: https://issues.apache.org/jira/browse/PDFBOX-3356
> Project: PDFBox
> Issue Type: Improvement
> Components: AcroForm
> Affects Versions: 2.0.1, 2.0.2, 2.1.0
> Reporter: Maruan Sahyoun
> Assignee: Maruan Sahyoun
> Priority: Minor
> Fix For: 2.1.0
>
>
> When an interactive forms field value is set and NeedAppearances is set to
> true PDFBox currently doesn't create/update the appearance stream. This shall
> be changed so new values are always reflected. This is also inline with the
> upcoming PDF 2 spec which requires appearances to be set and deprecates the
> NeedAppearances flag.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]