[
https://issues.apache.org/jira/browse/PDFBOX-2249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14083606#comment-14083606
]
Maruan Sahyoun commented on PDFBOX-2249:
----------------------------------------
For this file and the chosen data value of the list box the newly generated
appearance is correct if it matches the old appearance as the old data value is
the same. Changing the value to „2“ the generated appearance shall be (as
generated by Adobe Acrobat)
{code}
1 g
0 0 100 72 re
f
/Tx BMC
q
1 1 98 70 re
W
n
0.600006 0.756866 0.854904 rg
1 43.2559 98 13.8721 re <== highlight
f
0 g
BT
/Helv 12 Tf
0 g
2 59.6119 Td
(Choice ) Tj
40.668 0 Td
(1) Tj
ET
BT
2 45.7399 Td
(Choice ) Tj
40.668 0 Td
(2) Tj
ET
BT
2 31.8679 Td
(Choice ) Tj
40.668 0 Td
(3) Tj
ET
Q
EMC
{code}
As can be seen only the highlight box is changed
> Listbox controls render incorrectly
> -----------------------------------
>
> Key: PDFBOX-2249
> URL: https://issues.apache.org/jira/browse/PDFBOX-2249
> Project: PDFBox
> Issue Type: Bug
> Components: AcroForm
> Affects Versions: 1.8.6
> Environment: Windows 7
> Reporter: John McDonald
> Labels: Appearance
> Attachments: JMACTest.pdf, JMAC_PDFBOX_out.pdf, PDFBoxUtil.java
>
>
> I have a form with a listbox. I update the value in the listbox using the
> following code:
> PDChoiceField c = (PDChoiceField)f;
> ((PDChoiceField)f).setValue("2");
> I have a combo box that uses the same choices, and it works fine. The issue
> has to do with the rendering of the field. The update of the value (i.e.
> setValue method) works fine, but when I look at the resulting output PDF the
> choices have become unreadable because the font has gone way large.
> I have searched the mailing list, and posted a question regarding this that
> no one has answered, so I am now assuming this is an unknown bug.
> Thanks
--
This message was sent by Atlassian JIRA
(v6.2#6252)