You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Anze Sustar (JIRA)" <ji...@apache.org> on 2015/01/06 14:40:34 UTC
[jira] [Created] (PDFBOX-2588) Text fields if initialy empty in
AcroForms do not contain a COSName.V in its dictionary and therefore does
not get rendered.
Anze Sustar created PDFBOX-2588:
-----------------------------------
Summary: 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
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)