[
https://issues.apache.org/jira/browse/PDFBOX-4729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17007401#comment-17007401
]
Hai Dinh commented on PDFBOX-4729:
----------------------------------
[~msahyoun] I have uploaded the original (unfilled) and filled PDF.
> Wrong position of text in PDTextField with multiline
> ----------------------------------------------------
>
> Key: PDFBOX-4729
> URL: https://issues.apache.org/jira/browse/PDFBOX-4729
> Project: PDFBox
> Issue Type: Bug
> Components: AcroForm
> Affects Versions: 2.0.18
> Reporter: Hai Dinh
> Priority: Major
> Attachments: Filled.pdf, Original.pdf,
> image-2020-01-03-15-59-32-196.png, image-2020-01-03-16-01-25-319.png,
> image-2020-01-03-16-03-33-682.png
>
>
> Hi, I'm not sure if this's the right place to ask this question.
> I've been trying to fill an email value to a PDTextField by doing this:
>
> val field = acroForm.getField(name)
> field.setValue("[email protected]")
>
> It works okay with short email, but for long email:
> * The text is pushed down (wrong starting position)
> * A line break is automatically added at the dot(.)'s position
>
> This is the result:
> !image-2020-01-03-15-59-32-196.png|width=121,height=55!
>
> When I click on the field, the text looks normal, but when I click outside,
> it reverts to the image above
> !image-2020-01-03-16-01-25-319.png!
>
> When I click on the field and edit it, the text looks normal even after I
> click outside.
> !image-2020-01-03-16-03-33-682.png|width=125,height=58!
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]