You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Hai Dinh (Jira)" <ji...@apache.org> on 2020/01/03 09:05:00 UTC
[jira] [Created] (PDFBOX-4729) Wrong position of text in
PDTextField with multiline
Hai Dinh created PDFBOX-4729:
--------------------------------
Summary: 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
Attachments: 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("example+verylongemail@email.com")
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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org