You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andrew Sengul (JIRA)" <ji...@apache.org> on 2013/05/27 13:32:23 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 ]

Andrew Sengul updated PDFBOX-1402:
----------------------------------

    Attachment: pdf-sample-fields.pdf

This is a sample PDF with three text fields, named Text1, Text2 and Text3. Try adding text to these fields with .setValue and you'll see that if the text is longer than the field, with no newlines, it will run out of the field's edge instead of wrapping around.
                
> Improve handling of multiline text boxes
> ----------------------------------------
>
>                 Key: PDFBOX-1402
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1402
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDModel
>    Affects Versions: 1.7.1
>            Reporter: Will May
>         Attachments: multiLine.patch, 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira