You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Oliver Hofmann (JIRA)" <ji...@apache.org> on 2014/07/15 14:53:05 UTC

[jira] [Updated] (PDFBOX-1402) Improve handling of multiline text boxes

     [ https://issues.apache.org/jira/browse/PDFBOX-1402?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver Hofmann updated PDFBOX-1402:
-----------------------------------

    Attachment: multiline_positioning.patch
                automatic-font-size-calculation.patch

I tried a different approach to fix some of the points (based on release 1.8.6):
* [^multiline_positioning.patch] to correct positioning and correct appearance
* [^automatic-font-size-calculation.patch] for correct autosizing
Although these do not include a fix for the line line break issue, I hope this helps improving the existing patch even further.
Note that the fixes of PDFBOX-1231 may also help with the font size issue.

> Improve handling of multiline text boxes
> ----------------------------------------
>
>                 Key: PDFBOX-1402
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1402
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: AcroForm
>    Affects Versions: 1.7.1
>            Reporter: Will May
>         Attachments: automatic-font-size-calculation.patch, multiLine.patch, multiline_positioning.patch, pdf-sample-fields-out.pdf, pdf-sample-fields.pdf
>
>
> The current implementation for setting the appearance of content that is added to a multiline text box is incorrect in a number of ways:
> * Doesn't position the start of the text in the correct location
> * Incorrectly uses font size '0' instead of auto-sizing the font
> * Doesn't break up very long lines
> * If the font size is very large, then the next line is started too close to the previous line.



--
This message was sent by Atlassian JIRA
(v6.2#6252)