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

Maruan Sahyoun commented on PDFBOX-2249:
----------------------------------------

maybe could be handled the same way we handle multiline text i.e. every option 
is a line of text.

I’d think there should be some more thought put into the appearance calculation 
of form fields as well as annotations (they share some similarities as well as 
PDFBox limitations).

[~tilman] I've already started some more research to first look at some 
additional limitations we currently have. My current thought is to use a basic 
composer for text layout tasks. Maybe PDFBOX-1527 is a good starting point as 
might be some others samples on the web or Apache FOP. There are some 
undocumented defaults used by Adobe Reader/Acrobat (at least I couldn’t find 
any documentation) when calculating the appearance which might be worth 
replicating to some extend so users get a similar experience.

> 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)

Reply via email to