[
https://issues.apache.org/jira/browse/PDFBOX-1402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14360479#comment-14360479
]
Maruan Sahyoun commented on PDFBOX-1402:
----------------------------------------
with the latest revision r1666472 the fields filled by PDFBox in the
MultilineTest sample form (the upper 12 fields) have a very close visual
appearance to the once filled by Adobe Acrobat (the lower 12 fields). Clicking
into the fields and thus handing the processing over to Adobe Reader will no
longer shift the text.
There is still some room for improvement around storing&restoring graphics
state etc. but the layout should be stable now. The improvements can be handled
in a separate ticket.
> 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
> Assignee: Maruan Sahyoun
> Labels: Appearance
> Fix For: 2.0.0
>
> Attachments: MultilineTests-20150313.pdf,
> automatic-font-size-calculation.patch, multiLine.patch,
> multiline_linebreaks_alignment.patch, multiline_positioning.patch,
> pdf-sample-fields-out.pdf, pdf-sample-fields.filled.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.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]