[ https://issues.apache.org/jira/browse/PDFBOX-4729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maruan Sahyoun resolved PDFBOX-4729. ------------------------------------ Resolution: Fixed Resolved as part of PDFBOX-3835 > 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 > Assignee: Maruan Sahyoun > Priority: Major > Fix For: 2.0.21, 3.0.0 PDFBox > > 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("example+verylongem...@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-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org