[
https://issues.apache.org/jira/browse/PDFBOX-4761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17028863#comment-17028863
]
Maruan Sahyoun commented on PDFBOX-4761:
----------------------------------------
There are alignment settings at the field level and at the widget (the
displayed location of the field) level. What pdfbox reports is the alignment at
the field level. What pdfescape reports is the alignment at the widget level.
Both are correct. Currently when creating the appearance when the form is
filled using pdfbox the setting at the field level is taken to decide which
alignment to choose.
As a workaround you could check the alignment at the widget level and set the
alignment on the field level accordingly before filling the form field.
Note that the Q attribute is only specified for the field and not the widget in
the PDF specification. As Adobe Reader respects the setting on the widget level
pdfbox should do the same.
> Alignment Issue in textfield
> ----------------------------
>
> Key: PDFBOX-4761
> URL: https://issues.apache.org/jira/browse/PDFBOX-4761
> Project: PDFBox
> Issue Type: Bug
> Reporter: Baskar Murrugan
> Priority: Major
> Attachments: formFieldProp.png, new.pdf
>
>
> In [^new.pdf], if you just type a value in the 'Player 1' field, the value
> aligned left correctly. If we use to fill the value with PDFBOX jar. It
> aligned the value in the center. But I checked the Q value it showing as 1 in
> pdfbox. Since we're not specifying any alignment information but it took like
> Q=1 in pdfbox.
> It create some comptability issue while using over other pdf readers.
> Issue fixed with setQ(0), but other readers were working fine without any
> alignment information.
> I'm checked [^formFieldProp.png] info using [https://www.pdfescape.com
> |https://www.pdfescape.com/]It showing alignment value as left.
> https://mail-archives.apache.org/mod_mbox/pdfbox-users/202002.mbox/browser
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]