You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Will May (JIRA)" <ji...@apache.org> on 2013/03/27 22:47:16 UTC

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

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

Will May commented on PDFBOX-1402:
----------------------------------

Just realised that the example I attached isn't a very good one and the PDF I used to test the change against is not able to be freely distributed.
The patch still applies okay. Is there anyone who would be able to apply this patch?
                
> 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
>
>
> 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