You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Maruan Sahyoun (JIRA)" <ji...@apache.org> on 2014/09/14 14:08:34 UTC

[jira] [Commented] (PDFBOX-91) Problem with Form TextField and option "COMB"

    [ https://issues.apache.org/jira/browse/PDFBOX-91?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14133185#comment-14133185 ] 

Maruan Sahyoun commented on PDFBOX-91:
--------------------------------------

Comb fields don’t use the alignment options specified in the field options.

*Appearance (AP) for TextCombLeftAcroFilled*
{code}
/Tx BMC
q
1 1 139.745 20 re
W
n
BT
/Arial 12 Tf
0 g
12.59 6.914 Td
(1) Tj
27.089 0 Td
(2) Tj
28.38 0 Td
(3) Tj
28.186 0 Td
(4) Tj
28.482 0 Td
(5) Tj
ET
Q
EMC
{code}

*Appearance (AP) for TextCombRightAcroFilled*
{code}
/Tx BMC
q
1 1 139.7449 20 re
W
n
BT
/Arial 12 Tf
0 g
12.59 6.914 Td
(1) Tj
27.089 0 Td
(2) Tj
28.38 0 Td
(3) Tj
28.186 0 Td
(4) Tj
28.482 0 Td
(5) Tj
ET
Q
EMC
{code}



> Problem with Form TextField and option "COMB"
> ---------------------------------------------
>
>                 Key: PDFBOX-91
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-91
>             Project: PDFBox
>          Issue Type: Bug
>          Components: AcroForm
>              Labels: Appearance
>         Attachments: PDFBOX-91.pdf, n-400.pdf
>
>
> [imported from SourceForge]
> http://sourceforge.net/tracker/index.php?group_id=78314&atid=552832&aid=1288080
> Originally submitted by benlitchfield on 2005-09-11 15:54.
> i have a problem with form text fields when the option
> "comb of x characters" is enabled.
> One defines, how many letters should be placed inside 
> the text field and the
> letters will all have the same distance between each 
> other. I need this option
> because i have several fixed-length input fields and need 
> to place the letters
> on the correct positions.
> an examlpe of the template-pdf placed at
> pdfboxexample_before.pdf
> when filling the form fields with pdfbox everyting works 
> fine, but the comb-option
> gets almost lost. the output pdf   does not display the 
> form fields correctly,
> the comb-option seems to be activated when focussing 
> one form field and deactivated
> on leaving that field. the fields are not read-only, so one 
> can edit them in
> the output-pdf also. when doing that, the comp-options 
> comes back and the letters
> stay in place when leaving the form field.
> an example of the output-pdf is placed at
> pdfboxexample_after.pdf
> [comment on SourceForge]
> Originally sent by seafoxx.
> Logged In: YES 
> user_id=305823
> hi folks,
> just for info:
> might be the same problem as described in bug 1118054
> http://sourceforge.net/tracker/index.php?func=detail&aid=1118054&group_id=78314&atid=552832
> the form field is not displayed as it should be, happens
> with different fonts or attributes (my problem), happens
> with rotated fields in a usual page (barcode problem of
> _daniel) and happens with usual fields on a rotated page. It
> simply seems to be a problem that form fields are displayed
> wrong if some parameter is not set to default.
> i'd like to know if the form field changes it's way of
> being
> displayed when setting the cursor into the field. this
> usually happens with fields described in the other bug.
> see ya
> bastian



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)