[
https://issues.apache.org/jira/browse/PDFBOX-1402?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Will May updated PDFBOX-1402:
-----------------------------
Attachment: multiLine.patch
This patch improves the handling of the content in multiline text boxes. This
supports auto-sized fonts correctly, positions the text correctly and breaks up
long lines as well as correcting the hardcoded 'Tj 0 -13 Td' which would be too
small for large fonts.
The one problem is that the positioning algorithm is still black magic as I
just copied the 'normal' text box algorithm and tweaked it until it looked okay.
> 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