[
https://issues.apache.org/jira/browse/PDFBOX-2588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Maruan Sahyoun reassigned PDFBOX-2588:
--------------------------------------
Assignee: Maruan Sahyoun
> Text fields if initialy empty in AcroForms do not contain a COSName.V in its
> dictionary and therefore does not get rendered.
> ----------------------------------------------------------------------------------------------------------------------------
>
> Key: PDFBOX-2588
> URL: https://issues.apache.org/jira/browse/PDFBOX-2588
> Project: PDFBox
> Issue Type: Bug
> Components: AcroForm
> Affects Versions: 2.0.0
> Reporter: Anze Sustar
> Assignee: Maruan Sahyoun
> Labels: easyfix
> Original Estimate: 5m
> Remaining Estimate: 5m
>
> When filling pdf acro forms if a text field initialy does not contain a value
> ( is empty) then the fieldTreeNode does not set COSName.V in it's dictionary
> and therefore calling setValue does not update the value and does not render.
> This is solved by calling
> field.getDictionary().setItem(COSName.V, new COSString("some new value"));
> instead of setValue. This is probobally not desired. So either add it to
> constructor or somewhere else. This affects the trunk version (downloaded on
> 5.1.2015)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)