You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2014/09/09 18:39:29 UTC

[jira] [Comment Edited] (PDFBOX-2249) Listbox controls render incorrectly

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

Tilman Hausherr edited comment on PDFBOX-2249 at 9/9/14 4:39 PM:
-----------------------------------------------------------------

[~jmac@Emericon.com] small bug in your test code: change
{code}
					fieldValue = fieldValues.get(fieldName);
					if( ("TRUE".equalsIgnoreCase(fieldValues.get(fieldValue))) ||
							("CHECKED".equalsIgnoreCase(fieldValues.get(fieldValue))) ||
							("YES".equalsIgnoreCase(fieldValues.get(fieldValue))) )
{code}
to
{code}
                    fieldValue = fieldValues.get(fieldName);
                    if (("TRUE".equalsIgnoreCase(fieldValue))
                            || ("CHECKED".equalsIgnoreCase(fieldValue))
                            || ("YES".equalsIgnoreCase(fieldValue)))
{code}


was (Author: tilman):
[~jmac@Emericon.com] small bug in your test code: change
{code}
					fieldValue = fieldValues.get(fieldName);
					if( ("TRUE".equalsIgnoreCase(fieldValues.get(fieldValue))) ||
							("CHECKED".equalsIgnoreCase(fieldValues.get(fieldValue))) ||
							("YES".equalsIgnoreCase(fieldValues.get(fieldValue))) )
{code}
to
{code}
                    if (("TRUE".equalsIgnoreCase(fieldValue))
                            || ("CHECKED".equalsIgnoreCase(fieldValue))
                            || ("YES".equalsIgnoreCase(fieldValue)))
{code}

> 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
>            Assignee: Maruan Sahyoun
>              Labels: Appearance
>             Fix For: 1.8.7
>
>         Attachments: JMACTest.pdf, JMAC_PDFBOX_out.pdf, JMAC_PDFBOX_out1.jpg, ListboxAcrobat.png, ListboxPDFBox.png, PDFBoxUtil.java, PDFFormFields.pdf
>
>
> 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.3.4#6332)